Http://www.cnblogs.com/lhb25/archive/2012/04/05/javascript-validation-with-jshint-eclipse.html
Before using JSLint to validate JavaScript code and find that there is not enough flexibility, use jshint instead. Officially, Jshint is a community-driven (community-driven) tool for detecting errors and potential problems in JavaScript code, standardizing the coding style, and ensuring the quality of the code. Jshint has made a lot of improvements based on JSLint, allowing developers to define their own validation options.
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:
Related article: Using JSLint in Eclipse to ensure JavaScript code quality
This article address: Use Jshint to check JavaScript code in Eclipse
Using Jshint to check JavaScript code in Eclipse