Home > Article > Web Front-end > How to cancel eslint in vue
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.
The operating environment of this article: Windows 10 system, Vue version 2.9.6, DELL G3 computer.
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.
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!