Can anyone point to a functioning JSLint plugin for eclipse (3.5)?
thanks
Sure, there is a plugin here and it works ok. The update site is http://update.rockstarapps.com/site.xml
You can also run JSLint as an external tool, but I've never tried that.
Instructions copied here for posterity's sake:
- download and install JSRhino
- make it somehow available, e.g. create a js.bat (one line: java -jar "path/to/rhino/js.jar" %* )
- download JSLint and put it in some folder, e.g.
/path/to/jslint.js
- Add an external tool configuration in Eclipse:
Location: path/to/js.bat Working Directory: ${workspace_loc} Arguments: path/to/jslint.js ${resource_loc}You can now check your JavaScript code with JSLint by calling this external tool.