Disallows space after opening array square bracket and before closing. Reports only on arrays, not on property accessors. Use disallowSpacesInsideBrackets to report on all brackets.
Types: Boolean
, String
or Object
Values: "all"
or true
for strict mode, "nested"
(deprecated use "allExcept": [ "[", "]" ]
)
ignores closing brackets in a row.
"disallowSpacesInsideArrayBrackets": "all"
// or
"disallowSpacesInsideArrayBrackets": {
"allExcept": [ "[", "]", "{", "}" ]
}
"all"
var x = [[1]];
var x = a[ 0 ]; // Property accessor not an array
"nested"
var x = [ [1] ];
"allExcept"
var x = [ [1] ];
var x = [ { a: 1 } ];
var x = [ [ 1 ] ];