npm run eslint 报错 (87 errors, 0 warnings potentially fixable with the --fix option.)

93 problems (93 errors, 0 warnings)
87 errors, 0 warnings potentially fixable with the --fix option.

报这个错是因为package.json中配置项少了 --fixed

更改为:

"lint": "eslint --fix --ext .js,.vue src",

继续运行,这里还有一些错是不能自动修复的,按ctrl单击,直接进到文件里,按照提示修改,比如这个报错声明但未定义的,直接删除或暂时注释掉就欧克了

 

 

引用:   npm run eslint 报错

posted on 2019-07-05 17:50  一年八个月  阅读(31987)  评论(2编辑  收藏  举报