disallowSpacesInsideObjectBrackets

Disallows space after opening object curly brace and before closing.

Types: Object, Boolean or String

Values: "all" or true for strict mode, "nested" (deprecated use "allExcept": ['}']) ignores closing brackets in a row.

Example

"disallowSpacesInsideObjectBrackets": {
    "allExcept": [ "}", ")" ]
}

// or
"disallowSpacesInsideObjectBrackets": true | "all" | "nested"
Valid for mode "all"
var x = {a: {b: 1}};
Valid for mode "nested"
var x = {a: {b: 1} };
Valid for mode "allExcept": ["}"]
var x = {a: {b: 1} };
Invalid
var x = { a: { b: 1 } };
Rule source
Test source