报错原因项目中使用了husky,并且配置了”precommit”: “npm run lint”。因此会在你git commit的时候执行npm run lint 也就是eslint –ext .js src test。
GIT_DIR/h
2019-12-18