eslint --fix不报错,但修复文件失败

eslint全局,局部都安装了,
项目是用vue-cil生成的,输入eslint fiel --fix 命令后,不报错,也没有修复文件
图片描述

阅读 13.6k
2 个回答

试试 eslint --fix --debug action.js

--debug 参数可以输出更加详细的调试信息。

试试

  "scripts": {
    "lint": "eslint --fix --ext \".js,.vue\" --ignore-path .gitignore ."
  },

或者

  "scripts": {
    "lint": "node_modules/.bin/eslint --fix --ext \".js,.vue\" --ignore-path .gitignore ."
  },
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题