Thread:Manual talk:Coding conventions/JavaScript/Whitespace inside of square brackets/reply

None should be used adjacent to the brackets (i.e. the first is correct). The only exception I can think of is when there's a line break immediately after the first bracket (generally used for a long list, or at least a long item).