-
Notifications
You must be signed in to change notification settings - Fork 9
/
lefthook.yml
37 lines (35 loc) · 1.16 KB
/
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
# EXAMPLE USAGE
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
min_version: 1.5.5
skip_output:
- meta # Skips lefthook version printing
- skips # Skips "skip" printing (i.e. no files matched)
- summary # Skips summary block (successful and failed steps) printing
- success # Skips successful steps printing
- failure # Skips failed steps printing
# - execution # I want to skip all execution printing
- execution_info # Skips printing `EXECUTE > ...` logging
# - execution_out # I don't want to Skip printing successfully executed commands' output
pre-push:
scripts:
'sync.sh':
runner: sh
use_stdin: true
pre-commit:
parallel: true
commands:
eslint:
skip:
- merge
- rebase
stage_fixed: true
glob: "*.{ts,tsx,js,jsx,es,cjs,mjs}"
run: pnpm biome lint --fix {staged_files}
fmt:
skip:
- merge
- rebase
stage_fixed: true
glob: "*.{ts,tsx,js,jsx,es,cjs,mjs}"
run: pnpm biome format --write --no-errors-on-unmatched {staged_files}