-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
24 lines (24 loc) · 647 Bytes
/
lefthook.yml
File metadata and controls
24 lines (24 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pre-commit:
parallel: false
commands:
organize-imports:
glob: "*.{ts,tsx,cts,mts}"
run: npx organize-imports-cli {staged_files}
stage_fixed: true
priority: 1
oxlint:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: pnpm fix:oxlint {staged_files}
stage_fixed: true
priority: 2
oxfmt:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,md}"
run: pnpm fix:oxfmt {staged_files}
stage_fixed: true
priority: 3
typecheck:
glob: "*.{ts,tsx,cts,mts}"
run: pnpm typecheck
knip:
glob: "*.{ts,tsx,cts,mts}"
run: pnpm knip