What
Configure Husky pre-commit hooks that run lint-staged (ESLint + Prettier) and TypeScript type checking on staged files before each commit.
Why
Pre-commit hooks catch lint and type errors before they reach the codebase, reducing CI failures and review friction.
Scope
In: Husky setup, lint-staged configuration, ESLint on staged .ts/.tsx, Prettier formatting, TypeScript check
Out: Full test suite on commit
Acceptance Criteria
Technical Context
- Install husky and lint-staged
- Add .husky/pre-commit script
- Configure lint-staged in package.json
What
Configure Husky pre-commit hooks that run lint-staged (ESLint + Prettier) and TypeScript type checking on staged files before each commit.
Why
Pre-commit hooks catch lint and type errors before they reach the codebase, reducing CI failures and review friction.
Scope
In: Husky setup, lint-staged configuration, ESLint on staged .ts/.tsx, Prettier formatting, TypeScript check
Out: Full test suite on commit
Acceptance Criteria
Technical Context