Home  >  Article  >  Web Front-end  >  How to cancel eslint in vue

How to cancel eslint in vue

WBOY
WBOYOriginal
2022-03-17 10:37:216583browse

Vue method to cancel eslint: 1. Open the "build\webpack.base.conf.js" file and find "config.dev.useEslint" under rules; 2. Delete the createLintingRule method; 3. Just restart the project.

How to cancel eslint in vue

The operating environment of this article: Windows 10 system, Vue version 2.9.6, DELL G3 computer.

How to cancel eslint in vue

With the verification of eslint, it can standardize the developer's code, which is very good. However, some specifications such as indentation, spaces, and blank lines always report errors during the development process, which is too harsh. Therefore, let's introduce how to turn off this verification in the vue project.

1. Open the file build\webpack.base.conf.js

2. Find config.dev.useEslint under rules

3. Delete the createLintingRule method.

How to cancel eslint in vue

How to cancel eslint in vue

4. Restart the project

[Related recommendations: "vue.js tutorial" 】

The above is the detailed content of How to cancel eslint in vue. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn