tag | 917621ef92c182f5b99061d398254e4d962a8ee3 | |
---|---|---|
tagger | smikes <smikes@cubane.com> | Mon Feb 10 13:40:30 2014 |
object | ca7ead9a2111217cffa86e12d36cb24f5130b7a2 |
0.2.11
commit | ca7ead9a2111217cffa86e12d36cb24f5130b7a2 | [log] [tgz] |
---|---|---|
author | smikes <smikes@cubane.com> | Mon Feb 10 13:40:30 2014 |
committer | smikes <smikes@cubane.com> | Mon Feb 10 13:40:30 2014 |
tree | aa93f8e052862ac28dfc872a52e80145e9aa7ba0 | |
parent | 32bcf08e8790d44f668f55c56812159222fba6e1 [diff] |
0.2.11
Easily use JSLint from the command line.
jslint bin/jslint.js
Version 0.2.6 of node-jslint provides multiple editions of jslint to address backwards and forwards compatibility.
jslint lib/color.js
jslint --edition=latest lib/color.js
For example, edition 2013-02-03 which shipped with node-jslint 0.1.9:
jslint --edition=2013-02-03 lib/color.js
npm install jslint -g
make lint
Multiple files
jslint lib/color.js lib/reporter.js
All JSLint options supported
jslint --white --vars --regexp lib/color.js
Defaults to true, but you can specify false
jslint --bitwise false lib/color.js
Pass arrays
jslint --predef $ --predef Backbone lib/color.js
JSLint your entire project
find . -name "*.js" -print0 | xargs -0 jslint
Using JSLint with a config file
Start with the included jslintrc.example file and customize your options per project or copy it to $HOME/.jslintrc to apply your setting globally
See LICENSE file.