javascripteclipseeclipse-pluginjslint

Is there a working JSLint Eclipse plug-in?


Can anyone point to a functioning JSLint plug-in for Eclipse?


Solution

  • There is a plugin here and it works ok. (site is down sometime in 2011)
    The update site is http://update.rockstarapps.com/site.xml (site down 2012-07-24)

    You can also run jslint4java as an external tool:

    1. Download jslint4java
    2. Put jslint4java.jar somewhere
    3. Add an external tool configuration in Eclipse (Run > External Tools > External Tools Configurations > Program > New...):
      Location: /usr/bin/java
                (or your path to javaw.exe)
      Arguments: -jar /path/to/jslint4java.jar ${resource_loc}
      

    Now you can select a js file in the Project Explorer and run jslint4java from the external tools menu.