Problem
No pre-commit hooks means formatting/lint issues slip through to CI (or worse, get pushed). Tooling versions (Node, pnpm, Go) aren't pinned for local dev, leading to "works on my machine" issues.
Proposal
Lefthook for pre-commit hooks
- Run
prettier --check on staged files
- Run
eslint on staged files
- Run
turbo type-check (or a lighter check) on affected packages
- Run
glot lint / glot compat when lexicon files change
mise for tooling versions
- Pin Node, pnpm, and Go versions in
.mise.toml
- Replaces ad-hoc version management
- Note: mise is for local dev only — Vercel manages its own Node version via
engines in package.json / dashboard settings. No conflict.
Nice to haves
- Document setup in README/CONTRIBUTING
- Consider adding a
pnpm prepare script to auto-install lefthook on pnpm install
Problem
No pre-commit hooks means formatting/lint issues slip through to CI (or worse, get pushed). Tooling versions (Node, pnpm, Go) aren't pinned for local dev, leading to "works on my machine" issues.
Proposal
Lefthook for pre-commit hooks
prettier --checkon staged fileseslinton staged filesturbo type-check(or a lighter check) on affected packagesglot lint/glot compatwhen lexicon files changemise for tooling versions
.mise.tomlenginesinpackage.json/ dashboard settings. No conflict.Nice to haves
pnpm preparescript to auto-install lefthook onpnpm install