Skip to content

Commit 3a7c240

Browse files
committed
fix: optimize pass all files to biome at once
1 parent 7903e87 commit 3a7c240

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx|js|json|md)$')
33
[ -z "$FILES" ] && exit 0
44

5-
echo "$FILES" | xargs biome check --write
5+
biome check --write $FILES
6+
67
git add $FILES

0 commit comments

Comments
 (0)