Requires an empty line above the specified keywords unless the keyword is the first expression in a block.
Types: Boolean
or Array
Values:
true
specifies that the spacedKeywords found in the utils module require an empty line above itArray
specifies quoted keywords which require an empty line above it"requirePaddingNewlinesBeforeKeywords": [
"do",
"for",
"if",
"else"
// etc
]
true
function(a) {
if (!a) {
return false;
}
for (var i = 0; i < b; i++) {
if (!a[i]) {
return false;
}
}
while (a) {
a = false;
}
return true;
}
function(a) {
if (!a) {
return false;
}
for (var i = 0; i < b; i++) {
if (!a[i]) {
return false;
}
}
while (a) {
a = false;
}
return true;
}
['if', for']
function(a) {
if (!a) {
return false;
}
for (var i = 0; i < b; i++) {
if (!a[i]) {
return false;
}
}
while (a) {
a = false;
}
return true;
}
function(a) {
if (!a) {
return false;
}
for (var i = 0; i < b; i++) {
if (!a[i]) {
return false;
}
}
while (a) {
a = false;
}
return true;
}