| 1234567891011121314151617181920212223 |
- # 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,tsx,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
|