Skip to content

Commit

Permalink
Clarified command examples, added example for --predef array passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ante Salinovic committed Apr 12, 2012
1 parent 26ae90b commit 09f856b
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,38 @@
Easily use [JSLint][] from the command line.

jslint app.js
jslint lib/worker.js lib/server.js # Multiple files
jslint --white --vars --regexp app.js # All JSLint options supported
jslint --bitwise false app.js # Defaults to true, but you can specify false
find . -name "*.js" -print0 | xargs -0 jslint # JSLint your entire project

### Multiple files

jslint lib/worker.js lib/server.js

### All JSLint options supported

jslint --white --vars --regexp app.js

### Defaults to true, but you can specify false

jslint --bitwise false app.js

### Pass arrays

jslint --predef $ --predef Backbone app.js

### JSLint your entire project

find . -name "*.js" -print0 | xargs -0 jslint


## Install

npm install jslint


## Self-Lint

make lint


## License

See LICENSE file.
Expand Down

0 comments on commit 09f856b

Please sign in to comment.