Using Jshint to check JavaScript code in Eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.