-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
37 lines (31 loc) · 785 Bytes
/
lefthook.yml
File metadata and controls
37 lines (31 loc) · 785 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
# Lefthook configuration for DeepracticeInfra
# https://lefthook.dev/configuration/
commit-msg:
commands:
commitlint:
run: npx commitlint --edit {1}
pre-commit:
parallel: true
commands:
format:
glob: "*.{ts,js,cjs,mjs,json,md,yml,yaml}"
run: pnpm prettier --write {staged_files}
stage_fixed: true
lint:
glob: "*.{ts,js,cjs,mjs}"
run: pnpm lint
pre-push:
parallel: false
commands:
install-check:
run: pnpm install --frozen-lockfile
# Temporarily disabled - CI will catch these issues
# typecheck:
# run: pnpm typecheck
# Optional: skip tests and build in pre-push if too slow
# CI will catch these issues anyway
# test:
# run: pnpm test
#
# build:
# run: pnpm build