commit | 76a874d0fbcf50b1cdf8e9bbaf08c9997e387927 | [log] [tgz] |
---|---|---|
author | smikes <smikes@cubane.com> | Sun Nov 03 20:36:22 2013 |
committer | smikes <smikes@cubane.com> | Sun Nov 03 20:36:22 2013 |
tree | 807224d9c656dd15c66009eb4869eedc0d1c4698 | |
parent | 1a3ae06d2555eb8ff450a064da93b14f36a68e14 [diff] |
rewrite manpage in .md format; use ronn to generate man/jslint.1; add devDependency on ronn 0.4.0
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
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.