-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlefthook.yml
More file actions
33 lines (32 loc) · 1.27 KB
/
lefthook.yml
File metadata and controls
33 lines (32 loc) · 1.27 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
# Pre-commit static checks. Mirrors the fast gates in scripts/test.sh Phase 1
# (sans unit tests) so CI-breaking issues like unused exports, type errors,
# and lint regressions fail locally before a commit lands.
pre-commit:
parallel: true
commands:
knip:
run: pnpm knip
knip-prod:
run: pnpm knip:prod
oxlint:
run: pnpm exec oxlint
oxfmt-check:
run: pnpm exec oxfmt --check
lint-shell:
run: pnpm lint:shell
lint-scripts:
run: pnpm lint:scripts
typecheck-server:
run: pnpm exec tsc --noEmit --project server/tsconfig.json
typecheck-client:
run: pnpm exec tsc --noEmit --project client/tsconfig.json
typecheck-binary:
run: pnpm exec tsc --noEmit --project binary/tsconfig.json
typecheck-format:
run: pnpm exec tsc --noEmit --project format/tsconfig.json
typecheck-transpilers:
run: pnpm exec tsc --noEmit --project transpilers/tsconfig.json
typecheck-plugins-tssl:
run: pnpm exec tsc --noEmit --project plugins/tssl-plugin/tsconfig.json
typecheck-plugins-td:
run: pnpm exec tsc --noEmit --project plugins/td-plugin/tsconfig.json