出现原因由于项目中使用了husky,并且配置了"precommit": “npm run lint”。因此会在你git commit的时候执行npm run lint 也就是eslint --ext .js src test。
確定! 回上一頁