Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1 KB

README.md

File metadata and controls

47 lines (31 loc) · 1 KB

node-jslint

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

Install

npm install jslint

Adding JSLint as a Sublime Text Build System

For Windows

  • Select Tools | Build System | New Build System...

  • enter the following:

    { "cmd": ["jslint.cmd", "--terse", "$file"], "file_regex": "^([^(])()(.)$", "selector": "source.js" }

For Mac

  • Select Tools | Build System | New Build System...

  • enter the following:

    { "cmd": ["jslint", "--terse", "$file"], "file_regex": "^([^(])()(.)$", "selector": "source.js" }

Self-Lint

make lint

License

See LICENSE file.