Requires space after opening square bracket and before closing. Reports on all on brackets, even on property accessors. Use requireSpacesInsideArrayBrackets to exclude property accessors.
Types: Boolean or Object
Values:
Booleantrue: strict modeObject:"allExcept": Array specifying list of tokens that can occur after an opening square bracket or before a
closing square bracket without a space"requireSpacesInsideBrackets": true
"requireSpacesInsideBrackets": {
"allExcept": [ "[", "]", "{", "}" ]
}
truevar x = [ 1 ];
var x = a[ 1 ];
{ allExcept": [ "[", "]", "{", "}" ] }var x = [[ 1 ], [ 2 ]];
var x = [{ a: 1 }, { b: 2}];
var x = [1];