requireKeywordsOnNewLine

Requires placing keywords on a new line.

Type: Array

Values: Array of quoted keywords

Example

"requireKeywordsOnNewLine": ["else"]
Valid
if (x < 0) {
    x++;
}
else {
    x--;
}
Invalid
if (x < 0) {
    x++;
} else {
    x--;
}
Rule source
Test source