commit | ed1afde160f5b035a3b34cc08f706b229b6933d0 | [log] [tgz] |
---|---|---|
author | Sam Mikes <smikes@cubane.com> | Sun Nov 03 13:05:21 2013 |
committer | Sam Mikes <smikes@cubane.com> | Sun Nov 03 13:05:21 2013 |
tree | 9e2084a844f08bf0fe41140992da4a1d5230a12e | |
parent | bdc7b8a977d9e2b7f755c39b51709a76fbce3d47 [diff] |
add brief docs for --edition arg
Easily use JSLint from the command line.
jslint app.js
Version 0.2.1 of node-jslint provides multiple editions of jslint to address backwards and forwards compatibility.
jslint lib/color.js
jslint --edition=latest lib/color.js
jslint --edition=2013-02-03 lib/color.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.