Commit e92f0b9
committed
fix(hooks): propagate lint-staged exit code from husky pre-commit
The wrapper ran 'bun run lint:staged' and then unconditionally printed
'✅ Pre-commit checks passed.' regardless of the exit code, so failed
eslint-fix runs (which lint-staged handles by reverting all task
modifications, including prettier --write) silently let unformatted
or lint-failing blobs land. Add 'set -e' so a non-zero lint-staged exit
aborts the commit, which is what every other contributor expected.
Made-with: Cursor1 parent ff18c8b commit e92f0b9
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments