Requires placing object keys on new line
Types: Boolean
or Object
Values:
true
Object
:'allExcept'
array of exceptions:'sameLine'
ignores the rule if all the keys and values are on the same line"requireObjectKeysOnNewLine": true
"requireObjectKeysOnNewLine": {
"allExcept": ["sameLine"]
}
var a = {
b: 'b',
c: 'c'
};
var a = {
b: 'b', c: 'c'
};
{ "allExcept": ["sameLine"] }
var a = {
b: 'b', c: 'c'
};
{ "allExcept": ["sameLine"] }
var a = {
b: 'b', c: 'c',
d: 'd'
};