commit | 2b8d00a25d0adb3bb54f9e04b72c38af3e5ddf44 | [log] [tgz] |
---|---|---|
author | Sam Mikes <smikes@cubane.com> | Mon Oct 28 15:44:10 2013 |
committer | Sam Mikes <smikes@cubane.com> | Mon Oct 28 15:44:10 2013 |
tree | 54de4f71cd644ce422d6738cd8932d440a559fcb | |
parent | 140597ad82932417dee39e1905bb3bb8b3e2af12 [diff] |
don't report '<file> is OK.' in terse mode; just write a dot to stderr; need to check if this breaks emacs/flymake
Easily use JSLint from the command line.
jslint app.js
npm install jslint -g
make lint
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
See LICENSE file.