Requires space after opening array square bracket and before closing. Reports only on arrays, not on property accessors. Use requireSpacesInsideBrackets to report on all brackets.
Types: String
or Object
Values:
String
"all"
: strict mode"allButNested"
: (deprecated use Object version with "allExcept": [ "[", "]" ]
) ignores nested
closing brackets in a rowObject
:"allExcept"
: Array specifying list of tokens that can occur after an opening square bracket or before a
closing square bracket without a space"requireSpacesInsideArrayBrackets": "all"
"requireSpacesInsideArrayBrackets": {
"allExcept": [ "[", "]", "{", "}" ]
}
"all"
var x = [ 1 ];
var x = a[1];
{ "allExcept": [ "[", "]" ] }
or "allButNested"
var x = [[ 1 ], [ 2 ]];
{ "allExcept": [ "[", "]", "{", "}" ] }
var x = [[ 1 ], [ 2 ]];
var x = [{ a: 1 }, { b: 2}];
var x = [1];