forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lefthook.yml
19 lines (19 loc) · 820 Bytes
/
lefthook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# lefthook.yml
pre-commit:
parallel: true
commands:
bridge-ui:
glob: "packages/bridge-ui/**.{js,ts,css,svelte}"
run: pnpm -F bridge-ui svelte:check && pnpm -F bridge-ui lint:fix && git add {staged_files}
guardian-ui:
glob: "packages/guardian-prover-health-check-ui/**.{js,ts,css,svelte}"
run: pnpm -F guardian-prover-health-check-ui svelte:check && pnpm -F guardian-prover-health-check-ui lint:fix && git add {staged_files}
protocol_sol:
glob: "packages/protocol/**.{sol}"
run: pnpm -F protocol lint:sol && git add {staged_files}
protocol_ts:
glob: "packages/protocol/**.{ts}"
run: pnpm -F protocol eslint && git add {staged_files}
repo:
glob: "**.{json,md,yaml,yml}"
run: pnpm prettier {staged_files} --write && git add {staged_files}