Commit 5beb4b1
Erick Teowarang
chore: add husky + lint-staged pre-commit hook for oxfmt
Run oxfmt on staged ts/tsx/js/jsx/mjs/cjs/json/jsonc/md/mdx/yaml/yml/css/html
files before commit, preventing fmt:check failures in CI for cases that the
local pnpm fmt invocation hasn't caught.
- husky@9.1.7 + lint-staged@17.0.4 added as root devDependencies
- prepare script wires husky on pnpm install so contributors get the hook
- .husky/pre-commit runs `pnpm exec lint-staged`1 parent 6763252 commit 5beb4b1
3 files changed
Lines changed: 137 additions & 646 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments