Vue3 solves eslint warning

The code that was just pulled down reported a series of warnings at startup. Although the project can be viewed normally, this pile of warnings is really annoying. I searched the Internet for a while, but did not solve the problem. Instead, it turned into an error report. , Finally, I accidentally saw a blog, well written, and successfully solved my problem

Take a look at the error:

 Solution:

Find vue.config.js 

Modify lintOnsave to flase, if not, add lintOnsave to flase

as follows:

 This operation is actually to turn off the eslint detection mechanism.

In vue.config.js, set lintOnSave in module.exports = {} to false

module.exports = {
	lintOnSave: false,
	}

 Reference:
 vue-cli3 solution to cancel eslint verification code_vue3 close eslint-other code resources-CSDN library icon-default.png?t=M85Bhttps://download.csdn.net/download/weixin_38520437/13135455?spm=1001.2101.3001.6661.1&utm_medium=distribute .pc_relevant_t0.none-task-download-2%7Edefault%7ECTRLIST%7EPaid-1-13135455-blog-112018579.pc_relevant_aa2&depth_1-utm_source=distribute.pc_relevant_t0.none-task-download-2%7Edefault%7 ECTRLIST%7EPaid-1-13135455 -blog-112018579.pc_relevant_aa2&utm_relevant_index=1

Guess you like

Origin blog.csdn.net/Daisy_ls/article/details/127729923