Rewrite the generated Husky pre-commit hook to run the formatter only against staged files, stash unstaged changes via git stash push --keep-index while it runs, re-stage the formatted files, and preserve partial staging — fixing earlier hook behavior that mangled unstaged work or failed on empty commits (#262)