Requires space after opening object curly brace and before closing.
Types: String
or Object
Values:
String
"all"
: strict mode"allButNested"
: (deprecated use Object version with "allExcept": ['}']
) ignores nested
closing object braces in a rowObject
:"allExcept"
: Array specifying list of tokens that can occur after an opening object brace or before a
closing object brace without a space"requireSpacesInsideObjectBrackets": {
"allExcept": [ "}", ")" ]
}
"requireSpacesInsideObjectBrackets": "all"
"all"
var x = { a: { b: 1 } };
{ "allExcept": [ "}" ] }
or "allButNested"
var x = { a: { b: 1 }};
"allExcept": [ "}", ")" ]
var x = { a: (b ? 1 : 2)};
var x = { a: { b: 1 }};
var x = {a: 1};