git commit -m ''后报eslint错误

 

 解决办法:

1.

git commit --no-verify -m "提交时的注释"

2.找到根目录中的.eslintignore文件,将src放入其中,以便git提交时跳过src目录中所有文件的eslint检测机制。如下

build/*.js
public
dist
src

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-11-01
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案