24 lines
630 B
YAML
24 lines
630 B
YAML
# Git hooks (lefthook). Keep these local checkpoints fast; CI owns the full
|
|
# repository-wide gate matrix.
|
|
# Install: `pnpm exec lefthook install` (runs automatically via postinstall).
|
|
|
|
pre-commit:
|
|
jobs:
|
|
- name: lint (staged)
|
|
glob: '*.{ts,mts,cts,mjs}'
|
|
exclude:
|
|
- 'vendor/*/src/**'
|
|
run: node_modules/.bin/eslint --fix {staged_files}
|
|
stage_fixed: true
|
|
|
|
- name: whitespace (staged)
|
|
run: git diff --cached --check
|
|
|
|
- name: vendor manifest guard
|
|
run: scripts/check-vendor-manifest.sh
|
|
|
|
pre-push:
|
|
jobs:
|
|
- name: typecheck
|
|
run: node_modules/.bin/tsc -b --pretty false
|