美文网首页
ant design pro项目在提交时校验代码规则

ant design pro项目在提交时校验代码规则

作者: 喜剧之王爱创作 | 来源:发表于2019-12-17 16:08 被阅读0次

在修改过ant design pro 项目之后,想要提交到自己git仓库上去,却发现报这样的错,看原因是在提交之前校验了代码的规格


捕获.PNG

如果我们不想要在提交时进行eslint校验,就需要在提交之前去掉hook

git commit --no-verify -m 'your message'

这样就可以顺利提交了

相关文章

网友评论

      本文标题:ant design pro项目在提交时校验代码规则

      本文链接:https://www.haomeiwen.com/subject/ycasnctx.html