Disable eslint verification and vueeslint verification for vue Projects

Source: Internet
Author: User

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!

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.