Requires newline after blocks
Type: Boolean or Object
Values:
true: always require a newline after blocksObject:"allExcept": Array"inCallExpressions" Blocks don't need a line of padding in function argument lists"inNewExpressions" Blocks don't need a line of padding in constructor argument lists"inArrayExpressions" Blocks don't need a line of padding in arrays"inProperties" Blocks don't need a line of padding as object properties"singleLine" Blocks don't need a line of padding if they are on a single line"requirePaddingNewLinesAfterBlocks": true
"requirePaddingNewLinesAfterBlocks": {
"allExcept": ["inCallExpressions", "inNewExpressions", "inArrayExpressions", "inProperties", "singleLine"]
}
function () {
for (var i = 0; i < 2; i++) {
if (true) {
return false;
}
continue;
}
var obj = {
foo: function() {
return 1;
},
bar: function() {
return 2;
}
};
func(
function() {
}
);
var a = [
function() {
},
function() {
}
]
}
{ "allExcept": ["inCallExpressions"] }func(
2,
3,
function() {
}
);
{ "allExcept": ["inNewExpressions"] }new SomeClass(
2,
3,
function() {
}
);
{ "allExcept": ["inArrayExpressions"] }var foo = [
2,
3,
function() {
}
];
{ "allExcept": ["inProperties"] }var foo = {
a: 2,
b: function() {
},
c: 3
];
{ "allExcept": ["singleLine"] }for (var i = 0; i < 10; ++i) {
if (i % 2 === 0) { continue; }
console.log('Its getting odd in here...');
}
function () {
for (var i = 0; i < 2; i++) {
if (true) {
return false;
}
continue;
}
}