jslint

JSLint : how to use it?


I've understood that JSLint is a great tool for JavaScript development but I've some dark points in my global comprehension of this.

  1. How to use it inside my development environment ? In other words how and when do you run JSLint against your code ? I've seen the Aptana integration but it seems that it doesn't take into account statements like :

    /* jslint nomen: false */
    
  2. How to work correctly in a client side development environment ? I want JSLint to feel good when parsing calls including objects like "console", "$" or "JQuery".

  3. How to use it on a whole project with multiple files (with no import statement inside of them) ?

I've read to much statement suggesting to copy paste on jslint to sleep correctly, so any answer consisting of configuring the online JSLint form would be considered as irrelevant.


Solution

  • I'm sorry to write this answer which is not really one. The best solution I've found is to use JSHint which is a concurrent to JSLint with some nice extra features :

    This solution works for both browser and server code, it's IDE and OS independent, it can be easily integrated in continuous integration process.