Use JSHint in Eclipse to check JavaScript code

Source: Internet
Author: User
Document directory
  • Update Method
  • Uninstall Method

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 then selectJSHint 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
  • SelectJSHint Eclipse Integration, ClickUninstall
Usage

Select the project to enable verification, right click-> properties, select the JSHint item, and configure the files and folders for enabling verification. The configuration file example is as follows:

 

 

 

Related Articles: Using JSLint in Eclipse to ensure JavaScript code Quality

Address: Use JSHint in Eclipse to check JavaScript code

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.