git 提交时不需要 tsc 检查

背景

在做 Vue3 开发时,由于用到了 TypeScript,并且在 git commit 时,会进行 vue-tsc 检查,如果检查有错误,则 git 提交不了。

解决

git commit -m "commit" –no-verify

发表评论