Commit Linter
Overview
Validates commit messages and enforces conventional commits format.
Conventional Commit Format
type(scope): description
Types: feat, fix, docs, style, refactor, perf, test, chore
Valid Examples
feat(auth): add password reset fix(api): handle null response docs(readme): update install
Rules
- Subject line max 72 characters
- Use imperative mood ("add" not "added")
- No period at end of subject
- Separate subject from body with blank line
Validate
git log --oneline -20