-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
42 lines (41 loc) · 1 KB
/
lefthook.yml
File metadata and controls
42 lines (41 loc) · 1 KB
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
pre-commit:
parallel: true
output:
- summary
- failure
commands:
install:
run: bun install --frozen-lockfile
lint:
glob: "*.{ts,tsx,js,mjs}"
run: bun run lint --fix
stage_fixed: true
format:
glob: "*.{ts,tsx,js,json,md,astro,css}"
run: bunx prettier --write --ignore-path .prettierignore --config .prettierrc {staged_files}
stage_fixed: true
typecheck:
run: bun run typecheck
pre-push:
output:
- summary
- failure
commands:
build:
run: bun run build > /dev/null 2>&1
priority: 1
codegen-check:
run: bun run --filter @randsum/games gen:check > /dev/null 2>&1
priority: 2
conformance-check:
run: bun run --filter @randsum/rdn conformance:check > /dev/null 2>&1
priority: 2
test:
run: bun run test 2>&1 | tail -5
priority: 2
audit:
run: bun audit --level=high > /dev/null 2>&1
priority: 2
knip:
run: bun run knip > /dev/null 2>&1
priority: 2