Commit 2672055
committed
chore: add simple-git-hooks + lint-staged pre-commit hook
Runs Biome check --write on staged .ts/.tsx/.js/.mjs/.cjs files
and Biome format on .json/.jsonc files before every commit.
- simple-git-hooks wires up the .git/hooks/pre-commit
- lint-staged runs Biome only on changed files (fast)
- prepare script re-registers the hook after pnpm install
To bypass in emergencies: SKIP_SIMPLE_GIT_HOOKS=1 git commit1 parent 1e12f01 commit 2672055
2 files changed
Lines changed: 217 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
0 commit comments