-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlefthook.yml
More file actions
33 lines (30 loc) · 1.04 KB
/
lefthook.yml
File metadata and controls
33 lines (30 loc) · 1.04 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:
parallel: true
commands:
biome:
glob: "*.{ts,tsx,js,jsx,json,jsonc,css}"
exclude: ".beep/**|specs/**|outputs/**|scratchpad/**"
run: bunx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched {staged_files}
stage_fixed: true
jsdoc:
glob: "tooling/*/src/**/*.ts"
exclude: "tooling/*/src/internal/**|tooling/_test-*/src/**|**/*.test.ts|**/*.spec.ts|**/*.d.ts"
run: npx eslint --no-warn-ignored --config eslint.config.mjs --ignore-pattern 'tooling/_test-*/**' {staged_files}
gitleaks:
run: gitleaks protect --staged --verbose
typos:
glob: "*.{ts,tsx,js,jsx,md,json}"
exclude: ".beep/**|specs/**|outputs/**|scratchpad/**"
run: typos --exclude '.beep/**' --exclude 'scratchpad/**'
commit-msg:
commands:
commitlint:
run: bunx commitlint --edit {1}
pre-push:
commands:
github-checks:
run: bash scripts/run-github-checks.sh pre-push
post-merge:
commands:
version-sync-check:
run: bun run beep version-sync --skip-network