Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
Updated --help and README with Corey Hart's changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
codenothing authored and tav committed Mar 18, 2010
1 parent 7191b57 commit 921bf6b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -27,6 +27,17 @@ Otherwise, you need to run it with node:
Enjoy!


config
------

You can set JSLINT options by modifying the default `config.js` file or
specifying your own config file with the optional `--config` parameter, e.g.

$ nodelint.js file1 file2 --config path/to/your/config/file

Take a look at [JSLINT's Options] to see what to put in the `options` variable.


contribute
----------

Expand All @@ -47,8 +58,13 @@ credits

- [Oleg Efimov][Sannis], updated nodelint.js to be run from a symlink.

- [Corey Hart], updated nodelint.js with multiple files and config support.

[tav]: http://tav.espians.com
[felixge]: http://debuggable.com
[Douglas Crockford]: http://www.crockford.com
[my8bird]: http://github.com/my8bird
[Sannis]: http://github.com/Sannis
[Corey Hart]: http://www.codenothing.com

[JSLINT's Options]: http://www.jslint.com/lint.html#options
4 changes: 2 additions & 2 deletions nodelint.js
Expand Up @@ -75,9 +75,9 @@ function lint(files, config_file) {

if (!files.length) {
sys.puts(
"Usage: nodelint.js file.js [options]\n" +
"Usage: nodelint.js file.js [file2 file3 ...] [options]\n" +
"Options:\n\n" +
" --config FILE the path to a config.js file"
" --config FILE the path to a config.js file with JSLINT options"
);
return 1;
}
Expand Down

0 comments on commit 921bf6b

Please sign in to comment.