tag | 0ad1a83db85fea56578f01c50aff580afa244c34 | |
---|---|---|
tagger | smikes <smikes@cubane.com> | Wed Mar 19 20:40:05 2014 |
object | 721be6a82a9c0b102a3223a5b0331cbc78849297 |
version 0.3.1
commit | 721be6a82a9c0b102a3223a5b0331cbc78849297 | [log] [tgz] |
---|---|---|
author | Sam Mikes <smikes@cubane.com> | Wed Mar 19 20:38:56 2014 |
committer | Sam Mikes <smikes@cubane.com> | Wed Mar 19 20:38:56 2014 |
tree | 3c3533b27b64ff412d10997c8284b52d009f38ab | |
parent | 5a793f59747a3aaa76f614f13c650472f0706708 [diff] |
update readme, version
Easily use JSLint from the command line.
jslint bin/jslint.js
Added latest jslint, 2014-02-06.
Version 0.3.1 of node-jslint supports globbing with * and ** expressions.
Versions 0.2+ of node-jslint provide 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
jslint '**/*.js'
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.