error: 'XXX' is defined but never used (no-unused-vars)报错的解决方案
error: 'XXX' is defined but never used (no-unused-vars)报错的解决方案
解决方案
一、在package.json文件内加入如下代码:然后保存重启项目。
"rules": {
"generator-star-spacing": "off",
"no-tabs":"off",
"no-unused-vars":"off",
"no-console":"off",
"no-irregular-whitespace":"off",
"no-debugger": "off"
},