It is very flexible so you can easily adjust it to your particular coding guidelines and the environment you expect your code to execute in.
To install it, use the Eclipse update site: http://github.eclipsesource.com/jshint-eclipse/updates/
To activate JSHint for your project, open the project properties dialog, select JSHint and check “Enable JSHint for this project“.
From now on, all your .js files will be checked.
Here is a screenshot that shows JSHint in action. You can see warning icons next to lines that violate rules. The problem view shows all the violations with a description of the problem.
The default configuration of JSHint is not that strict, so you probably want to provide your own configuration. The configuration page shows all possible settings. To adjust these settings in Eclipse, open the preferences page and navigate to JSHint -> Options.
Here is my personal config that is a lot stricter than the default configuration:
devel: true, browser: true, curly: true, eqeqeq: true, forin: true, immed: true, latedef: newcap, noarg: true, noempty: true, undef: true, strict: true, trailing: true, newcap: true