From 25a5b81c59c0e2ce4182dad21aea92d79c31c82b Mon Sep 17 00:00:00 2001 From: gavrielc Date: Sat, 9 May 2026 20:26:48 +0300 Subject: [PATCH] fix: re-stage prettier-formatted files in pre-commit hook The hook ran format:fix but didn't re-stage the modified files, so commits went through with unformatted code and CI caught the diff. Co-Authored-By: Claude Opus 4.6 (1M context) --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 799cd8f..3bcac61 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ pnpm run format:fix +git diff --name-only -- 'src/**/*.ts' | xargs git add 2>/dev/null || true