-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
32 lines (30 loc) · 899 Bytes
/
Copy pathlefthook.yml
File metadata and controls
32 lines (30 loc) · 899 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
pre-commit:
parallel: true
commands:
# Check formatting and lint before committing
biome-check:
glob: '*.{astro,js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}'
run: bunx @biomejs/biome check --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
# Type checking
check-types:
run: bun run check:types
pre-push:
parallel: true
commands:
# Security scanning
gitLeaks:
run: bunx gitleaks detect --config .gitleaks.toml --verbose
# Circular dependency check
check-circular-deps:
glob: '**/*.{ts,tsx,js,jsx,astro}'
run: bun run check:circular-deps
# Branch naming validation
check-branch-name:
run: bunx validate-branch-name
# Full quality check before push
quality-gate:
run: bun run ci:quality
commit-msg:
commands:
commitlint:
run: bunx commitlint --edit {1}