Webstrom configuration eslint automatic fix error __web

Source: Internet
Author: User
1, show the effect

How to add Eslint to Vue project, how to automatically fix it.

First show the effect:


2. Configuration Steps 1, install the plug-in eslint plugin

Webstrom actually has a very useful plug-in, Eslint plugin (if the first installation does not come can manually download, download the address https://plugins.jetbrains.com/plugin/7494-eslint)

2, configure Plug-ins

After installation, here are several places to configure:

Note that the two-point two box is your item address/node_modules/.bin/eslint.cmd the third box is. eslintrc.js

If Linux is, in fact, similar to window, the reference configuration is as follows:


Once configured, you can use it.


Especially in this area eslint fix can be automatically repaired very easy to use ... 3, reference

Even more convenient for you to configure a eslint automatically fix the shortcut keys that I use for the alt+l

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.