tag | 9b3ffab7e65f2b44b22a9549a696323712918acb | |
---|---|---|
tagger | Sam Mikes <smikes@cubane.com> | Thu Jan 23 14:13:05 2014 |
object | 347a3a84c963cbcbedf21090e77246f84acf0002 |
Fix issue #79
commit | 347a3a84c963cbcbedf21090e77246f84acf0002 | [log] [tgz] |
---|---|---|
author | Sam Mikes <smikes@cubane.com> | Thu Jan 23 14:12:44 2014 |
committer | Sam Mikes <smikes@cubane.com> | Thu Jan 23 14:12:44 2014 |
tree | e1f1d37bda7aa5269a20d61a062bec32204cc45b | |
parent | 84f27d6de0ee9e64fc9520a14555e2564c16995c [diff] |
bump version number
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.