git提交代码报styleLint错误的3种解决方案

git提交代码报styleLint错误的3种解决方案

  • 报错日志
  • 解决方案1
  • 解决方案2
  • 解决方案3

报错日志

git提交代码报styleLint错误的3种解决方案_第1张图片

解决方案1

删 xxx项目 / .git / hooks 里面的pre-commit文件。这个文件提交git的时候会做一道检查,把删了就不检查了。
git提交代码报styleLint错误的3种解决方案_第2张图片

解决方案2

在webstorm里commit代码时,设置取消勾选Run Git Hooks
git提交代码报styleLint错误的3种解决方案_第3张图片

解决方案3

在webstorm里取消Stylelint检查
git提交代码报styleLint错误的3种解决方案_第4张图片

你可能感兴趣的:(git)