Context
There are no pre-commit hooks. Contributors can push code that fails lint/format checks, causing noisy CI failures.
Change required
pnpm add -Dw husky lint-staged
pnpm exec husky init
.husky/pre-commit:
Root package.json:
"lint-staged": {
"**/*.ts": ["eslint --fix", "prettier --write"]
}
This catches formatting and lint issues locally before they hit CI.