Disallows space after opening square bracket and before closing. Reports on all on brackets, even on property accessors. Use disallowSpacesInsideArrayBrackets to exclude property accessors.
Types: Boolean
or Object
Values: true
for strict mode, or "allExcept": [ "[", "]" ]
ignores closing brackets in a row.
"disallowSpacesInsideBrackets": true
// or
"disallowSpacesInsideBrackets": {
"allExcept": [ "[", "]", "{", "}" ]
}
true
var x = [[1]];
var x = a[1];
{ allExcept": [ "[", "]", "{", "}" ] }
var x = [ [1] ];
var x = [ { a: 1 } ];
var x = [ [ 1 ] ];