Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem is that JSLint goes further than static analysis and suggests what could be considered simply "stylistic" changes to match the way Crockford thinks javascript should be written.

For example, doing comparisons (x == null) or (x != null) is a well known shortcut for checking vs null or undefined. There's nothing inherently "bad" about using that shortcut.



It sounds to me like what you need isn't an escape from JSLint, but rather a better JSLint config file that skips the stylistic checks you dislike. JSLint at its strictest can definitely be a little too strict.

(of course, there's really no reason to be using JSLint over JSHint anyway)


Well that was actually my point; JSHint is effectively a highly configurable version of JSLint.


JSLint is already a highly configurable version of JSLint. JSHint is a leniently configured JSLint.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: