esmangle icon indicating copy to clipboard operation
esmangle copied to clipboard

Make JSLint clean code

Open Constellation opened this issue 12 years ago • 3 comments

We should make this JSLint clean code.

Constellation avatar Aug 30 '12 20:08 Constellation

May I suggest using ESLint instead?

JSLint is really a pain. I've given up trying to refactor everything.

ThomasR avatar Mar 27 '16 12:03 ThomasR

:+1: jslint is and always has been a terrible tool.

michaelficarra avatar Mar 27 '16 15:03 michaelficarra

To be fair, JSLint actually helps in many cases.

Its opinionated stylistic rules* mostly lead to cleaner loops, even though they're sometimes just getting in the way.

The only real issue that I've seen so far is return delete node.loc;, which makes no sense in strict mode — Should be try { delete node.loc; return true; } catch(e) { return false; }

*no for, no continue, no while(true)

ThomasR avatar Mar 28 '16 07:03 ThomasR