Skip to content

Commit

Permalink
fix: fix bug to ignore auto spell checking for staged deleted files
Browse files Browse the repository at this point in the history
fix #7
  • Loading branch information
mohammadGh committed Apr 23, 2024
1 parent 6976c42 commit 4d339df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# lint only staged files
pnpm lint-staged

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

0 comments on commit 4d339df

Please sign in to comment.