Use JSHint in Eclipse to check JavaScript

Source: Internet
Author: User

Previously, JSlint was used to verify JavaScript code and found that it was not flexible enough. Therefore, JSHint was used. According to the official statement, JSHint is a community-driven tool used to detect errors and potential problems in JavaScript code, standardize the coding style, and ensure the quality of the Code. JSHint has made many improvements based on JSLint, allowing developers to define verification options themselves.

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 and select JSHint Eclipse Integration

The subsequent installation process is very simple. Click OK.

Update Method

If it has been installed, you can update it:

On the Eclipse Main Menu, click: Help> Check for Updates.

Uninstall Method

You can detach an ECS instance as follows:

On the Eclipse Main Menu, click: Help> About Eclipse> Installation Details.

Select JSHint Eclipse Integration and click Uninstall

Usage

In a project that contains a JavaScript file, right-click the project and select Properties.

On the JSHint page, select enable JSHint for this project

You can right-click a folder and select Exclude this folder from JSHint validation to cancel verification.

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.