Pre-commit Hooks
Pre-commit hooks are managed by Husky and usepnpm + lint-staged.
Setup
Install Node dependencies (this also sets up Husky):Running Manually
To run hooks manually: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