JSLint in Programmer’s Notepad, Revisited

This is an update to my previous post, Programmer’s Notepad and JSLint. After a few dev versions where the tools didn’t work they’re back in fighting shape.

There were a few annoyances with my previous version around the actual running of JSLint. The old official WSH JSLint script was set to return after only a single error & read from Standard Input. I finally got fed up enough with these limitations to figure out how to fix them. Now it reads read in the file from disk instead of Standard Input & can output multiple errors per file, a huge improvement imo.

Quick Note: wsh.js doesn’t exist on JSLint.com anymore. I’ve taken my modified version and put it on GitHub.

  1. Grab the fulljslint.js from Crockford’s github repo.
  2. Concatenate wsh.js to the end of fulljslint.js
  3. Save it somewhere easy to reference, I used C:\Users\Pcavit\tools\jslint.js for easy referencing via the %USERPROFILE% environment variable

Once you’ve done that you’ll want to change a few tools settings.

And now you can get multiple error output, with clickable errors. It’s totally awesome.

Comments are closed.