disallowPaddingNewlinesBeforeKeywords

Disallow an empty line above the specified keywords.

Types: Array or Boolean

Values: Array of quoted types or true to disallow padding new lines after all of the keywords below.

Example

"disallowPaddingNewlinesBeforeKeywords": [
    "do",
    "for",
    "if",
    "else",
    "switch",
    "case",
    "try",
    "catch",
    "void",
    "while",
    "with",
    "return",
    "typeof",
    "function"
]
Valid
function(a) {
    if (!a) {
        return false;
    }
    for (var i = 0; i < b; i++) {
        if (!a[i]) {
            return false;
        }
    }
    return true;
}
Invalid
function(a) {
    if (!a) {

        return false;
    }

    for (var i = 0; i < b; i++) {
        if (!a[i]) {

            return false;
        }
    }

    return true;
}
Rule source
Test source