# Lefthook configuration. # # Installed automatically by the "prepare" script in package.json. # Runs cheap gates locally so pushes don't burn CI cycles on issues we # can catch on the developer machine. # # Manual install (rarely needed): # pnpm exec lefthook install # # Skip hooks for a single commit (use sparingly): # LEFTHOOK=0 git commit ... pre-commit: parallel: true commands: lint-staged: glob: "*.{ts,tsx}" run: node scripts/eslint-staged.mjs {staged_files} secrets: run: node scripts/verify-secrets.mjs eslint-baseline: run: node scripts/verify-eslint-baseline.mjs test-density: run: node scripts/verify-test-density.mjs pre-push: parallel: false commands: typecheck: run: pnpm typecheck i18n: run: node scripts/verify-hardcoded-strings.mjs