I have configin tslint.jsonforone line rule
one-line": [true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
When I have lines of code like this:
if(SomethingTrue) { next("a"); }
else { next("b"); }
I have a warning:
(one-line) file.ts[17, 9]: misplaced 'else'
Why is this happening? Is it wrong practice to have one line else?
source
share