We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8008546 commit 3c9484bCopy full SHA for 3c9484b
.husky/pre-commit
@@ -1,8 +1,4 @@
1
#!/usr/bin/env sh
2
. "$(dirname -- "$0")/_/husky.sh"
3
-# 检查是否处于 rebase 状态
4
-if [ -z "$(git rev-parse --git-dir 2> /dev/null)" ]; then
5
- # 不处于 rebase 状态,执行 lint 和 format
6
- echo "lint and format before commit"
7
- npm run lint && npm run format
8
-fi
+echo "lint and format before commit"
+#npm run lint && npm run format
0 commit comments