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