-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathlefthook.yaml
More file actions
29 lines (29 loc) · 673 Bytes
/
lefthook.yaml
File metadata and controls
29 lines (29 loc) · 673 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
assert_lefthook_installed: true
min_version: 1.7.18
pre-commit:
piped: true
follow: true
skip:
- merge
- rebase
commands:
1_eslint:
run: pnpm eslint --fix {staged_files}
glob: '*.{js,ts,svelte}'
stage_fixed: true
2_svelte-check:
run: pnpm svelte-check
glob: '*.svelte'
stage_fixed: true
exclude:
- '*.md.svelte'
1_stylelint:
run: pnpm stylelint {staged_files}
glob: '*.{svelte,css}'
stage_fixed: true
2_prettier:
run: pnpm prettier --write {staged_files}
glob: '*.{js,ts,svelte,css,json,md,yaml}'
stage_fixed: true
exclude:
- pnpm-lock.yaml