idea commit js文件报错问题
idea commit js文件报错问题
第一次涉足React技术,提交代码时遇阻塞,
commit失败,并且所有文件格式都被更改,糟心。。。
报错如下
husky > npm run -s precommit (node v12.13.0) [?25lRunning tasks for
**/.{js,jsx,less} [started] Running tasks for **/.{js,jsx} [started] Running tasks for **/.less [started] Running tasks for **/.less
[skipped] → No staged files match **/*.less prettier --wirter
[started] lint-staged:js [started] lint-staged:js [failed] → ×
lint-staged:js found some errors. Please fix them and try committing
again. …
最终解决
commit时去掉run git hooks 勾选