vue3.0项目中eslint检查时,Unexpected console statement (no-console)报错解决
在利用vue-cli3+构建的项目中引入eslint进行语法检查时,使用console.log('xxx')时,控制台抛出了Unexpected console statement (no-console)异常,解决办法是:在项目的package.json文件中,eslintConfig 配置项中的“rules”中新增一条配置项即可"eslintConfig": {......
·
在利用vue-cli3+构建的项目中引入eslint进行语法检查时,使用console.log('xxx')时,控制台抛出了 Unexpected console statement (no-console) 异常,解决办法是:
在项目的package.json文件中,eslintConfig 配置项中的“rules”中新增一条配置项即可
"eslintConfig": {
...
"rules": {
"no-console":"off"
}
}
更多推荐
已为社区贡献20条内容
所有评论(0)