About a year ago I wrote a post regarding JSLint usage for code quality of JavaScript. There is now,for a while actually, an open-source fork of that code that allows for greater configuration.
Oddly, there are two separate sites, but I believe that they have the same content: