Skip to content

Set up pre-commit hooks for lint-staged and type checking #177

Description

@Akatenvictor

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

  • Pre-commit hook runs automatically
  • ESLint fixes auto-fixable issues on staged files
  • Prettier formats staged files
  • TypeScript type check runs on staged files
  • Commit blocked if errors remain
  • Hook setup documented in README

Technical Context

  • Install husky and lint-staged
  • Add .husky/pre-commit script
  • Configure lint-staged in package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions