We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce3eca commit 83578dfCopy full SHA for 83578df
.husky/pre-commit
@@ -2,8 +2,8 @@
2
3
. "$(dirname "$0")/_/husky.sh"
4
5
-STAGED_TS_FILES=$(git diff --staged --name-only | grep '\.ts$' | xargs)
6
-STAGED_SOL_FILES=$(git diff --staged --name-only | grep '\.sol$' | xargs)
+STAGED_TS_FILES=$(git diff --staged --diff-filter=ad --name-only | grep '\.ts$' | xargs)
+STAGED_SOL_FILES=$(git diff --staged --diff-filter=ad --name-only | grep '\.sol$' | xargs)
7
8
if [ -n "$STAGED_SOL_FILES" ]; then
9
yarn prettier --config .prettierrc.json --write $STAGED_SOL_FILES
0 commit comments