Skip to content

Commit 4d339df

Browse files
committed
fix: fix bug to ignore auto spell checking for staged deleted files
fix #7
1 parent 6976c42 commit 4d339df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.husky/pre-commit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lint only staged files
22
pnpm lint-staged
33

4-
# run spell checker for stage files
5-
pnpm cspell --no-summary --no-progress --file $(git diff --name-only --cached)
4+
# run spell checker for staged files
5+
pnpm cspell --no-summary --no-progress --files $(git diff --diff-filter=d --name-only --cached)

0 commit comments

Comments
 (0)