requireSpaceBeforeKeywords

Requires space before keyword.

Types: Array, Boolean or Object

Values: true to require all possible keywords to have a preceding space (except function), Array of quoted keywords or an Object with the allExcept property set with an Array of quoted keywords.

Example

"requireSpaceBeforeKeywords": [
    "else",
    "while",
    "catch"
]
Valid
} else {
    x++;
}
Invalid
}else {
    x++;
}
Rule source
Test source