eslint全局,局部都安装了,
项目是用vue-cil生成的,输入eslint fiel --fix 命令后,不报错,也没有修复文件
试试
"scripts": {
"lint": "eslint --fix --ext \".js,.vue\" --ignore-path .gitignore ."
},
或者
"scripts": {
"lint": "node_modules/.bin/eslint --fix --ext \".js,.vue\" --ignore-path .gitignore ."
},
9 回答1.7k 阅读✓ 已解决
6 回答943 阅读
3 回答1.3k 阅读✓ 已解决
4 回答949 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
3 回答856 阅读
3 回答1.3k 阅读✓ 已解决
试试
eslint --fix --debug action.js
。--debug
参数可以输出更加详细的调试信息。