From b0c611b5c146251aa3cfd56a03e2f5dfb40ae4f1 Mon Sep 17 00:00:00 2001 From: Ariel Scarpinelli Date: Mon, 22 Sep 2025 09:19:11 -0300 Subject: [PATCH] fix: avoid linting & commiting unstaged files --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 3ebdff6310..5957bc6db9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,4 @@ . "$(dirname -- "$0")/_/husky.sh" -npm run lint:fix && npm run format:write && git add . +git stash -k -u && npm run lint:fix && npm run format:write && git add . && git stash pop