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 ."
},
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.4k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
试试
eslint --fix --debug action.js
。--debug
参数可以输出更加详细的调试信息。