Easily use JSLint from the command line.
jslint app.js
jslint lib/worker.js lib/server.js # Multiple files
jslint --white --vars --regexp app.js # All JSLint options supported
jslint --bitwise false app.js # Defaults to true, but you can specify false
find . -name "*.js" -print0 | xargs -0 jslint # JSLint your entire project
npm install jslint
-
Select Tools | Build System | New Build System...
-
enter the following:
{ "cmd": ["jslint.cmd", "--terse", "$file"], "file_regex": "^([^(])()(.)$", "selector": "source.js" }
-
Select Tools | Build System | New Build System...
-
enter the following:
{ "cmd": ["jslint", "--terse", "$file"], "file_regex": "^([^(])()(.)$", "selector": "source.js" }
make lint
See LICENSE file.