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 ."
},
4 回答4.6k 阅读✓ 已解决
4 回答2.1k 阅读✓ 已解决
4 回答2.2k 阅读✓ 已解决
3 回答5.1k 阅读
2 回答2.6k 阅读✓ 已解决
1 回答3.1k 阅读✓ 已解决
5 回答2.3k 阅读
试试
eslint --fix --debug action.js
。--debug
参数可以输出更加详细的调试信息。