-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlefthook.yml
46 lines (41 loc) · 869 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
41
42
43
44
45
46
# git hooks
pre-commit:
piped: true
commands:
biome:
priority: 1
glob: '*.{js,ts,tsx}'
run: npx biome check --write {staged_files}
stage_fixed: true
prettier:
priority: 2
run: npx prettier --write --ignore-unknown {staged_files}
stage_fixed: true
pre-push:
parallel: true
commands:
biome:
run: npm run lint
prettier:
run: npm run pretty
typescript:
run: npm run typecheck
vitest:
run: npm run test:unit
playwright:
run: npm run build -- --logLevel=silent && npm run test:e2e
# custom scripts
setup:
parallel: true
commands:
lefthook:
run: npx lefthook install
playwright:
run: npx playwright install --with-deps
test:
parallel: true
commands:
vitest:
run: npm run test:unit
playwright:
run: npm run test:e2e