Of course, the twist is: use filejs to drive a command-line jslint. This is one way to do it. First build filejs (follow the instructions in the included README), then place the executable in your PATH. Create a simple shell script, which contains one line filejs /path/to/filejs/jslint.js $1 and make it executable. That’s it! If you also store this shell script in your PATH, then you just need to run:
If you use vim, jslint can be combined with Quickfix. First of all, associate *.js with the tool by putting this line in your personal .vimrc:
Note 1: It does not work on Windows yet. No idea if I would have the time to do it, patch is welcomed.
Note 2: This is not a replacement for NodeJS, nor would it grow to include more functions.
Note 3: For the sake of completeness, let me mention that there are already other countless solutions for command-line jslint (using Rhino, SpiderMonkey, JSC, etc), even with vim integration.