I would like to check my JavaScript files without going to JSLint web site.
Is there a desktop version of this tool for Windows?
I know this is an old one, but nobody's mentioned that JSLint is open source and available on github. https://github.com/douglascrockford/JSLint
You can use the HTML page that's included, or create your own interface using:
var options = {
browser : true,
plusplus : true,
unparam : true,
maxlen : 120,
indent : 4 // etc
};
if (JSLINT(myCode, options)) {
document.write('Passed!');
} else {
document.write('Failed! :(');
}
document.write('');
for (i = 0; i < JSLINT.errors.length; i++) {
document.write('- ' + JSLINT.errors[i].line + ': ' + JSLINT.errors[i].reason + '
');
}
document.write('
');