We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f6baa commit 4aa14b4Copy full SHA for 4aa14b4
.husky/pre-commit
@@ -1,4 +1,4 @@
1
-FILES=$(git diff --cached --name-only --diff-filter=ACMR)
+FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep -E '\.(ts|js|json|html|css|scss)$' || true)
2
[ -z "$FILES" ] && exit 0
3
echo "$FILES" | xargs npx --no-install oxfmt
4
echo "$FILES" | xargs git add
0 commit comments