Disable eslint verification and vueeslint verification for vue Projects
Introduction eslint
Eslint is a JavaScript Validation plug-in that is usually used to verify the syntax or code writing style.
Official documents: https://eslint.org
This article summarizes eslint rules: Eslint Rule Description
Disable eslint Verification
With eslint verification, it is good to standardize the code of developers. However, some standards, such as indentation, spaces, and blank rows, have always reported errors during the development process, which is too harsh. Therefore, I still choose to disable eslint verification.
The following describes how to disable the verification in the vue project.
When creating a vue project, we have an option: Use ESLint to lint your code? (Y/n). In this step, we can select no.
But if we accidentally select Y and keep reporting errors during the development process, what should we do? We don't need to delete the project and recreate it. We just need to modify the build \ webpack. base. conf. js file.
In the red box, the file content in my project is like this, and other projects may have other content. We can comment out or remove the content in the box.
If you run the project now, no error will be reported.
Last
It is so easy to disable eslint verification. I hope it will help you.
However, eslint can help standardize the code style, effectively control the code quality, and make the Code look more neat when multiple people work together. Therefore, we recommend that you keep eslint verification during development to develop a good coding habit. If you have any questions, please leave a message and the editor will reply to you in time. Thank you very much for your support for the help House website!