-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
38 lines (34 loc) · 799 Bytes
/
lefthook.yml
File metadata and controls
38 lines (34 loc) · 799 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
37
38
# git hooks
pre-commit:
piped: true
commands:
eslint:
priority: 1
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint --no-ignore --fix {staged_files}
stage_fixed: true
prettier:
priority: 2
run: npx prettier --write --ignore-unknown {staged_files}
stage_fixed: true
pre-push:
parallel: true
commands:
eslint-check-config:
run: npm run lint:check
eslint:
run: npm run lint
prettier:
run: npm run format:check
vitest:
run: npm run test:unit
playwright:
run: npm run build -- --logLevel=silent && npm run test:e2e -- --reporter=list
typescript:
run: npm run typecheck
# custom tasks
setup:
parallel: true
commands:
playwright-install:
run: npx playwright install --with-deps