forked from gitcoinco/grants-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yml
45 lines (39 loc) · 1.06 KB
/
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
pre-commit:
skip:
- merge
- rebase
parallel: true
commands:
prettier:
glob: "**/*.{js,ts,jsx,tsx}"
run: pnpm format {staged_files}
stage_fixed: true
lint-builder:
root: "packages/builder"
glob: "**/*.{js,ts,jsx,tsx}"
run: pnpm --filter "builder" lint:local {staged_files}
stage_fixed: true
lint-manager:
root: "packages/round-manager"
glob: "**/*.{js,ts,jsx,tsx}"
run: pnpm --filter "round-manager" lint:local {staged_files}
stage_fixed: true
lint-explorer:
root: "packages/grant-explorer"
glob: "**/*.{js,ts,jsx,tsx}"
run: pnpm --filter "grant-explorer" lint:local {staged_files}
stage_fixed: true
lint-data-layer:
root: "packages/data-layer"
glob: "**/*.{js,ts,jsx,tsx}"
run: pnpm --filter "data-layer" lint {staged_files}
stage_fixed: true
pre-push:
parallel: true
commands:
typecheck:
run: pnpm turbo run typecheck
build:
run: pnpm turbo run build
test:
run: pnpm turbo run test --concurrency=50%