Commit 0ca3099
committed
fix: replace manual oxfmt shell script with lint-staged
The pre-commit hook used a manual shell script to format staged files,
but `2>/dev/null || true` swallowed errors silently. When oxfmt failed,
unformatted code was committed and only caught later by the pre-push
`oxfmt --check`, blocking pushes with pre-existing formatting drift.
Switch to lint-staged (the official oxfmt recommendation) which handles
staged file filtering, formatting, and re-staging correctly — including
partial staging.1 parent fd61b59 commit 0ca3099
3 files changed
Lines changed: 202 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
0 commit comments