Run pre-commit install once per clone to install the commit and push hooks.
- Commit hooks run lint and format checks, matching CI.
- Push hooks run the type check and tests, matching CI (run
npm cifirst). - Run everything with
pre-commit run --all-files --hook-stage pre-push.