vue 解决 error ‘xxxx‘ is assigned a value but never used no-unused-vars

时间:2024-03-20 16:03:50

错误原因:eslint的验证语法

修改配置文件,有得项目rules 位置在package.json,我得是单独得一个js

全局搜索rules,
“generator-star-spacing”: “off”,
“no-tabs”:“off”,
“no-unused-vars”:“off”,
“no-console”:“off”,
“no-irregular-whitespace”:“off”,
“no-debugger”: “off”
vue 解决 error ‘xxxx‘ is assigned a value but never used no-unused-vars