tag | 8920a54679a7982b20e0194131d620c354f9f486 | |
---|---|---|
tagger | Sam Mikes <smikes@cubane.com> | Wed Nov 06 16:18:18 2013 |
object | 55443dbeaa53bd2be92993dd3f81425a122a22ac |
add prepublish script
commit | 55443dbeaa53bd2be92993dd3f81425a122a22ac | [log] [tgz] |
---|---|---|
author | smikes <smikes@cubane.com> | Wed Nov 06 16:04:39 2013 |
committer | smikes <smikes@cubane.com> | Wed Nov 06 16:04:39 2013 |
tree | 4c4b46dcef7fdba7dfec0043a17ca42aea189c86 | |
parent | d578c8496e777f155b6757a5af40d5732cf918b3 [diff] |
increment version number
Easily use JSLint from the command line.
jslint bin/jslint.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
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.