node-jscs icon indicating copy to clipboard operation
node-jscs copied to clipboard

validateIndentation on switch statements fails if opening bracket is on new line

Open Tathanen opened this issue 10 years ago • 4 comments

If you have validateIndentation set to an integer (in my case 4), it complains about switch statements where the opening curly bracket isn't on the opening line. See:

Freaks out: Error

Fine: Fine

I write my code Allman style and everything else is fine, just switch statements seem to be actin weird.

Was able to reproduce using the JSCS CLI as well, screenshots from Atom for convenience.

Tathanen avatar Jun 03 '16 19:06 Tathanen

At this point only major and CST related bugs will be fixed.

markelog avatar Jun 04 '16 01:06 markelog

Is eslint what will be supported moving forward? I wasn't aware jscs was being eol'd.

Tathanen avatar Jun 04 '16 02:06 Tathanen

Check it out - https://medium.com/@markelog/jscs-end-of-the-line-bc9bf0b3fdb2#.jsnhpxsjz

markelog avatar Jun 04 '16 02:06 markelog

Got it, thanks!

Tathanen avatar Jun 04 '16 02:06 Tathanen