-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
40 lines (35 loc) · 945 Bytes
/
lefthook.yml
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
37
38
39
40
commands:
lint: &lint_command
glob: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
filter: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
run: pnpm run lint
format-check: &format_check_command
glob: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
filter: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
run: pnpm run format:check
format: &format_command
glob: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
filter: '*.{js,ts,jsx,tsx,mjs,cjs,d.cts,d.mts,json,jsonc,astro}'
run: |
pnpm run format
git add
stage_fixed: true
pre-push:
commands:
lint:
<<: *lint_command
pre-commit:
parallel: true
commands:
lint:
<<: *lint_command
format:
<<: *format_command
stage_fixed: true
check:
parallel: true
commands:
lint:
<<: *lint_command
format-check:
<<: *format_check_command