In this example
if (true) {
doFirstThing();
doSecondThing();
} else {
doSomethingElse();
}
I want to add new line before each else
and else if
block.
if (true) {
doFirstThing();
doSecondThing();
} else {
doSomethingElse();
}
Is there any ESlint rule that can do that?