1.vue.config.js设置lintOnSave: false
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false
})
2.package.json:eslintConfig->rules设置"no-unused-components": “off”
“rules”: {“no-unused-components”: “off”}
3.最后重启
1.vue.config.js设置lintOnSave: false
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false
})
2.package.json:eslintConfig->rules设置"no-unused-components": “off”
“rules”: {“no-unused-components”: “off”}
3.最后重启