Version 0.1.11. Fix back-compat with 0.1.9.

Changes that broke back-compat with 0.1.9 have been reverted.

 - JSLint 2012-04-15 is back
 - Old-style non-emacs-friendly terse mode output is back
1 file changed
tree: ec0941ed2bb2b798fc1158cb7ded351151ced695
  1. bin/
  2. lib/
  3. .gitignore
  4. LICENSE
  5. Makefile
  6. package.json
  7. README.md
README.md

node-jslint

Easily use JSLint from the command line.

jslint app.js

Install

npm install jslint -g

Self-Lint

make lint

Usage examples

Multiple files

jslint lib/worker.js lib/server.js

All JSLint options supported

jslint --white --vars --regexp app.js

Defaults to true, but you can specify false

jslint --bitwise false app.js

Pass arrays

jslint --predef $ --predef Backbone app.js

JSLint your entire project

find . -name "*.js" -print0 | xargs -0 jslint

License

See LICENSE file.