问题 在使用vue-cli开发项目时,遇到未使用的变量,会报如下错误 is defined but never used eslint... 解决 在项目根目录package.json 修改eslintConfig配置项 no-unused-vars 为 off 值即可解决。