Closed mk-pmb closed 8 years ago
It appears that the indent
option is deprecated in jslint-es6, see http://www.jslint.com/help.html
Please note that this project, node-jslint, just provides the wrapper scripts. jslint itself is written by Douglas Crockford ( https://github.com/douglascrockford/jslint ) with a discussion forum ( https://github.com/douglascrockford/jslint ) -- if you want an explanation for Douglas's decisions and/or to make feature requests about the actual linter, that's the place to do it.
If you'd like a more configurable and less strict linter, check out eslint: http://eslint.org
Will do, thanks!
I made a feature request and an experimental implementation of custom indentation. If anyone more well-versed in jslint could have a look, I'd appreciate that.
Update: Current jslint doesn't accept any indentation config, it's hard-coded to 4 spaces, with magic numbers even. The --indent=
option to node-jslint doesn't have any effect anymore.
→ Should node-jslint thus warn if --indent=
is given for a 2015-or-later edition?
Looks like DC doesn't like to, or couldn't yet spare the time to, point me to an explanation of his decision against custom indentation.
In the time until I come to understand it, would you prefer I try and research ways to
→ make node-jslint emulate the now missing --indent=
support?
Or should I rather switch to eslint instead? In that case, do you know of a project that maintains an eslint config that mimics jslint?
Somehow it cannot accept two-spaces indentation in es6 mode, why is that and can it be fixed?