Jshint home:http://www.jshint.com/
Jshint options:http://www.jshint.com/options/
Jshint for eclipse:http://github.eclipsesource.com/jshint-eclipse/
Installation method
Latest stable version update URL:
http://github.eclipsesource.com/jshint-eclipse/updates/
On the Eclipse main menu, click: Help > Install New software ...
Enter the URL above, then select Jshint Eclipse Integration
The following installation process is simple, press down to confirm it.
Update method
If it is already installed, you can update it:
On the Eclipse main menu, click: Help > Check for Updates
Uninstall method
You can uninstall it as follows:
On the Eclipse main menu, click: Help > About Eclipse > Installation Details
Select Jshint Eclipse integration, click Uninstall
How to use
Select the project to enable validation, right-click Properties, select the Jshint key, configure the file and folder to enable checksums, and an example of the configuration file is as follows:
Original http://www.html5cn.org/portal.php?mod=view&aid=5523
Using Jshint to check JavaScript code in Eclipse