-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (33 loc) · 888 Bytes
/
Copy pathlefthook.yml
File metadata and controls
36 lines (33 loc) · 888 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
25
26
27
28
29
30
31
32
33
34
35
36
glob_matcher: doublestar
pre-commit:
commands:
format:
priority: 1
glob: "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json,jsonc,mdx,yml,yaml,css,scss,less,html,astro}"
run: bunx oxfmt --write {staged_files}
stage_fixed: true
lint:
priority: 2
glob: "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}"
run: bunx oxlint --fix {staged_files}
stage_fixed: true
commit-msg:
commands:
commitlint:
run: bunx commitlint --edit {1}
pre-push:
commands:
format:
priority: 1
glob: "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json,jsonc,mdx,yml,yaml,css,scss,less,html,astro}"
run: bunx oxfmt --check {push_files}
lint:
priority: 2
glob: "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}"
run: bunx oxlint {push_files}
build:
priority: 3
run: bun run build
test:
priority: 4
run: bun test