Skip to content

Commit

Permalink
💫 chore: fix allow empty lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz committed May 10, 2024
1 parent 89e39f3 commit 915c51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi


# 运行 lint-staged
if pnpm lint-staged; then
if pnpm lint-staged --allow-empty; then
# 检查 Git 暂存区是否有变化
if [ -z "$(git diff --cached)" ]; then
# 暂存区为空,输出警告信息
Expand Down

0 comments on commit 915c51b

Please sign in to comment.