Keep else-if on same line
EditorConfig key: js-special-else-if-treatment
Keep else-if on same line
js-special-else-if-treatment
If true, an else followed by an if is kept on the same line.
Default value:
true
Possible values:
true
false
Examples
true
if (a) {} else if (b) {}
false
if (a) {} else if (b) {}