I would like to check my JavaScript files without going to JSLint web site.
Is there a desktop version of this tool for Windows?
Easy to keep up to date.
Install Node.js.
Install jslint-reporter into: C:\jslint-reporter
Download JSLint:
C:\jslint-reporter>node wrapper.js --upgrade
Test:
C:\Temp>node C:\jslint-reporter\wrapper.js missing_semicolon.js
missing_semicolon.js:1:10:Expected ';' and instead saw 'console'.
missing_semicolon.js:2:1:'console' was used before it was defined.
Easy to set up, but you rely on the package author for keeping the included JSLint up to date:
Install Node.js.
Using npm, the package manager of Node.js, install JSLint:
C:\>npm -g install jslint
Test:
C:\Temp>jslint missing_semicolon.js
missing_semicolon.js
#1 Expected ';' and instead saw 'console'.
var x = 5 // Line 1, Pos 10
To run JSLint, you may also use Rhino or any other JavaScript implementation that works on Windows, of course.