How to turn off EsLint detection in Vue (using ready-made projects as the development basis, the inconvenience caused by EslLint)

        When developing, we often use other people's projects as the basis for our own development, such as using renren-fast-vue , etc. Although it greatly facilitates us to get started with development quickly, we often report a lot of errors when writing our own code. For example, when writing a vue file and importing your own vue template, a screen full of errors will appear. This is because the EsLint check function was selected when the project was created. Because the EsLint check mechanism is very strict, when writing code , , one more space or one more line may result in an error, such as the following picture:

So how to solve it?

1. Find the build/webpack.base.conf.js file of the project, and then comment the content in the createLintingRule method

Or delete the content selected in the box in Figure 3

2. Finally, remember to exit and reopen the IDE compilation tool, so that it will take effect, or you can also npm install the project again.

Guess you like

Origin blog.csdn.net/FebruaryQ/article/details/132639711
Recommended