git 报git: husky>pre-commit 的解决方案

198 阅读1分钟

提交git的时候保这个错

D6_I$J_J~RVUO@9C2%2R_(V.png

打开git 日志看是 ESLint couldn't find the config "@vue/standard" to extend from. Please check that the name of the config is correct

The config "@vue/standard" was referenced from the config file in "/home/jessica/niuxiaoling/project/.eslintrc.js".

1YB63Z`RTRSS}NBIF)V(J7G.png

然后我就在package.json加了 "@vue/eslint-config-standard": "^5.1.0" 就可以正常提交了

发现还不对 后来在.git> hooks 里找到pre-commit 文件,删除后就能提交了