Skip to main content

Pre-commit Hooks

Pre-commit hooks are managed by Husky and use pnpm + lint-staged.

Setup

Install Node dependencies (this also sets up Husky):
pnpm install

Running Manually

To run hooks manually:
./.husky/pre-commit
Note: lint-staged only runs on staged files, so make sure you have staged changes first.

What Gets Checked

The hooks will:
  • Run linters on staged files
  • Validate commit messages with commitlint
  • Format code automatically