Vue3 closes syntax checking (actually effective)
the first way
Create a new vue.config.js file and enter the code in the file
module.exports = {
// 关闭eslint校验
devServer: {
overlay: {
warnings: true,
errors: true
}
},
lintOnSave: false
}
But I tried this method and it doesn't seem to work!
Pro-test effective way
Just comment out the '@vue/standard' in the .eslintrc.js file
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
// '@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/multi-word-component-names': 'off'
}
}