Skip to content

Commit

Permalink
Exclude removed files from pre-push linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jas14 authored and mcmire committed Jan 21, 2024
1 parent 382bdae commit 3c1e8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

echo "Fixing changed files with lint violations..."

yarn prettier --write --ignore-unknown $(git diff "$(git merge-base main HEAD)" --name-only) || exit $?
yarn prettier --write --ignore-unknown $(git diff "$(git merge-base main HEAD)" --name-only --diff-filter=d) || exit $?

echo
echo "Auditing dependencies..."
Expand Down

0 comments on commit 3c1e8fd

Please sign in to comment.