Commit af1cc66
authored
chore: run oxlint --fix-dangerously in pre-commit hook (tldraw#8414)
In order to catch unused imports and formatting issues before they reach
CI, this PR adds `oxlint --fix-dangerously` to the lint-staged
pre-commit config for JS/TS files. It runs before `oxfmt --write` so
formatting stays clean after auto-fixes.
### Change type
- [x] `improvement`
### Test plan
1. Stage a file with an unused import
2. Commit — the pre-commit hook should remove the unused import and
reformat
3. Verify the committed file has no unused import and is properly
formatted
### Code changes
| Section | LOC change |
| -------------- | ---------- |
| Config/tooling | +5 / -1 |1 parent 2cb294e commit af1cc66
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
0 commit comments