General

Commit Message Convention Guide: Conventional Commits vs commitlint vs Lint

2026-11-11 · 5 min · Lint Team

Why commit message conventions matter



A consistent commit history is not just for aesthetics. Conventional messages let you generate changelogs automatically, trigger releases based on commit type, and make code reviews easier. But enforcing that consistency is harder than it sounds. This guide compares three approaches: the Conventional Commits specification (a standard), commitlint (a validator), and Lint (an AI writing assistant for developers).

The baseline: Conventional Commits



The Conventional Commits spec defines a lightweight hierarchy for messages:

``
[optional scope]:

[optional body]

[optional footer]
`

Common types include
feat, fix, docs, style, refactor, test, and chore. Breaking changes are indicated with an ! after the type/scope or a BREAKING CHANGE footer.

Example:

`
feat(auth): add JWT refresh token rotation

BREAKING CHANGE: refresh tokens are now single-use
`

The main benefit of this spec is its direct link to Semantic Versioning. A
fix maps to a patch release, a feat to a minor release, and a breaking change to a major release. Tools like semantic-release read these messages to automate versioning.

Pros:
- No tooling required—just a shared convention.
- Universal across ecosystems.
- Enables automated release notes.

Cons:
- Relies on human discipline. Typos and non-conforming messages creep in.
- No grammar or clarity checks; a message can be technically correct but confusing.

The enforcement layer: commitlint



commitlint is a Node.js tool that lints commit messages against a set of rules. The most common configuration is
@commitlint/config-conventional, which mirrors the Conventional Commits spec. You typically run it with husky git hooks so invalid messages are rejected before they enter the repo.

Example config:

`js
module.exports = { extends: ['@commitlint/config-conventional'] };
`

With husky:

`bash
npx husky add .husky/commit-msg "npx --no -- commitlint --edit $1"
`

commitlint validates:
- Type is from an approved list.
- Subject case and punctuation.
- Header length limits.
- Presence of body/footer for breaking changes.

Pros:
- Automated and consistent.
- Works in CI, so even machines without local hooks are checked.
- Extensible with custom rules.

Cons:
- Only checks format, not whether the message communicates intent clearly.
- Requires setup and maintenance (Node.js, hooks, config).
- Can be bypassed locally with
--no-verify, so CI is essential.

AI-assisted writing: Lint



Lint is a writing assistant built for developers. It checks grammar, spelling, punctuation, and tone in your editor and in commit message interfaces. Instead of just enforcing a format, Lint helps you write better commit messages by suggesting clearer phrasing and catching mistakes before you commit.

For example, a developer might type:

`
fix auth: handel token expiration
`

Lint could flag the misspelling "handel" and suggest "handle", and optionally prompt for a conventional format:

`
fix(auth): handle token expiration
`

Because Lint operates at the language level, it complements commitlint rather than competing with it. commitlint ensures structure; Lint ensures readability and correctness of the text itself.

Pros:
- Catches grammar and spelling errors that format linters miss.
- Low learning curve; works where you already write.
- Can suggest conventional commit prefixes as you type.

Cons:
- Not a replacement for hard format validation.
- AI suggestions may be imperfect and need a human review.
- Requires users to have the tool installed and active.

Head-to-head comparison



| Feature | Conventional Commits | commitlint | Lint |
|---|---|---|---|
| What it validates | Message structure (by convention) | Format rules (type, case, length) | Grammar, spelling, clarity, tone |
| Where it runs | Human memory, docs | Git hooks, CI | Editor, IDE, commit message UI |
| Feedback type | None—requires self-discipline | Blocking errors | Real-time suggestions |
| Learning curve | Medium (need to learn types) | Low-medium (config) | Low (familiar writing assistant) |
| Git integration | None native | Strong via husky/CI | Indirect (editor integrations) |
| Extensibility | Human-defined | Custom rules/plugins | AI model updates, style guides |
| Best for | Establishing a shared vocabulary | Enforcing consistency at scale | Improving message clarity |

When to use which



- Learning or solo projects: Start with Conventional Commits as a manual checklist. Read the spec, write messages by hand, and review your own history.
- Fast-moving teams: Adopt commitlint with husky and CI. It will reject non-conforming messages before they cost you a changelog.
- Teams that care about communication: Add Lint to catch typos, ambiguous subjects, and tone issues. Lint works alongside commitlint, not instead of it.

A practical workflow that combines all three



The most robust setup uses all three layers:

  • Agree on Conventional Commits as the convention.

  • Add commitlint to enforce format in pre-commit and CI.

  • Use Lint in your editor to draft and proofread messages before commit.


  • A developer might start with a rough message:

    `
    fix token refresh problem
    `

    Lint suggests expanding to
    fix(auth): handle token refresh failure when server returns 401, and flags the passive voice. The developer accepts the suggestion. Then commitlint validates that the type, scope, and subject meet the configured rules. The final message is:

    `
    fix(auth): handle token refresh failure on 401 response
    ``

    This combination catches both format and language issues without adding much overhead.

    Honest verdict



    There is no single right answer for commit message conventions. Conventional Commits gives you a clear standard but depends on human consistency. commitlint is the workhorse for automation and enforcement, but it ignores whether a message actually makes sense. Lint fills the grammar and clarity gap that the other two leave open. For most professional teams, the best approach is Conventional Commits + commitlint for structure, plus Lint for the human side of writing.

    Check your own text — free



    Paste a commit message, PR description, or code comment into the free Lint grammar checker. It proofreads the prose and leaves identifiers, commands, and fenced code blocks untouched — no signup needed for your first checks.
    📌 Prices and tool count in this article may be outdated. Lint now ships 16 tools with Pro at $12/mo, or $60/year. See the current pricing page.
    Try Lint free — no signup, code-aware
    Free · no account needed · open full toolkit →
    L
    Lint Team
    Lint Tools — AI writing for developers

    Grammar is not the gap. Phrasing is.

    Rule-based non-native pattern detection with L1 attribution — your voice kept intact.

    Check native-likeness — free How it works
    Or upgrade to Pro for 500 checks a day · All tools · No ads

    Need more than free tools?

    Unlock 500 checks a day, larger text capacity, and priority support.

    View pricing → Upgrade Lint — Pro $12/mo or $60/yr
    💬