diff --git a/.husky/pre-commit b/.husky/pre-commit index 56157a38..07b9f8fe 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,4 @@ aztec-nargo fmt +# fmt may rewrite staged .nr files; re-stage them so the commit matches the working tree +git diff --name-only --cached -- "*.nr" | xargs -r git add yarn lint-staged