commitlint
A strong pick. 2nd of 10 git hooks and release tools.
commitlint checks commit messages against Conventional Commits or your own rules. It is the standard tool for that job in JavaScript, and it is a strong pick for any team that enforces a commit format. It does not run hooks or publish releases itself, so you pair it with Husky, Lefthook or simple-git-hooks, and with a release tool such as semantic-release.
Best for: Teams that enforce Conventional Commits locally and in CI, often to feed automated changelogs and releases.
Scores
Overall7.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 7.0 to 8.0
For linting commit messages it is the clear default, it is actively maintained, and it is safe. It does only one part of the category's job, and its value depends on whether a team adopts Conventional Commits. The Node 22 floor and volunteer-only upkeep keep it out of the top band.
- github.releasesLastYear: 21 releases in the last year
- dev.to/dangreen/how-to-setup-conventional-commits-in-javascript-project-2026-edition-5gh: Still the recommended commit linter in 2026
- npm downloadsLast4Weeks: 62M downloads, growth in line with hook-tool peers
GPT-6.2 Sol: 8.2, likely 7.1 to 9.1
commitlint is a strong pick for new projects that want to enforce Conventional Commits or a custom message policy. It fits alongside Husky for hook management, lint-staged for staged-file checks, and semantic-release for publishing. Active maintenance and real CI use support the recommendation, while the Node.js minimum and below-baseline adoption growth temper it.
- commitlint.js.org/guides/local-setup: Documents hook integration and the Node.js 22.12 minimum.
- github.com/lint-staged/lint-staged: The peer runs checks on staged files.
- github.com/semantic-release/semantic-release: The peer handles versioning and package publishing.
- rucio.github.io/documentation/contributing: Shows commitlint enforcing a real project's CI policy.
- github releasesLastYear, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Active release cadence and download growth below the catalog baseline.
Needed by many4.9
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Only teams that enforce a commit format need it. That is a sizeable group, mostly teams that use Conventional Commits for automated releases, but far from every project. Within its category it covers just one slice of the hooks-and-release job.
- dependents.repos: 173k dependent repos, about half of Husky's 386k
- freecodecamp.org/news/how-to-use-commitlint-to-write-good-commit-messages: Most useful on large projects with many committers
GPT-6.2 Sol: 4.7, likely 3.5 to 6.0
Commit message rules can serve any Git repository, and the checks are especially useful when commit types drive changelogs or version bumps. Teams that enforce a convention only on squash-merge titles have less need to lint every commit. Available research measures public repositories and leaves the share of private JavaScript and TypeScript projects uncertain.
- 0x404.github.io/assets/pdf/conventional_commit.pdf: Study documents adoption and enforcement patterns across public repositories.
- reddit.com/r/git/comments/1ppqqg7/conventional_commits_git_hooks: Teams describe enforcing conventions at squash merge and the friction of local hooks.
- commitlint.js.org/guides/local-setup: Supports several hook setups, including repositories without a package.json.
Helps a lot8.3
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It is mature and full-featured: configurable rules, shareable configs, TypeScript config files, monorepo scope helpers, custom parsers and CI ranges. No JavaScript peer does this job better. AI agents know its setup well. The limits are the Node 22 floor, a set of packages to install, and config-loading bugs that recent patches had to fix.
- github.com/conventional-changelog/commitlint/releases: v21.x adds --default-config and custom parsers, and fixes TS config and Yarn PnP loading
- dev.to/dangreen/how-to-setup-conventional-commits-in-javascript-project-2026-edition-5gh: 2026 setup guide recommends commitlint with no alternative
- github.com/conventional-changelog/commitlint: Supports .ts/.mts/.cts config files; requires Node >= 22.12
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
Version 21.2.4 combines a ready-made preset with typed configuration, rule plugins, parser overrides, and checks over Git ranges. Rule-specific errors and JSON output for the resolved config give coding agents a concrete way to check their work. The latest patch improved TypeScript config loading, but independent measurements of hook latency and agent success are sparse.
- commitlint.js.org/reference/cli.html: Documents the built-in preset, Git range checks, and exit codes.
- commitlint.js.org/reference/configuration.html: Documents TypeScript types, shareable configs, plugins, and parser presets.
- commitlint.js.org/guides/ai-agents.html: Documents resolved JSON config and rule-specific feedback for agents.
- github.com/conventional-changelog/commitlint/releases/tag/v21.2.4: Improved TypeScript config loading and fixed config array handling.
- github.com/rucio/rucio/blob/master/commitlint.config.js: Rucio uses custom rules for issue trailers and breaking-change markers.
Holds up over time7.7
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Activity is steady: 519 commits, 21 releases, and a fix release about once a month in 2026. Issues are handled well, with 62 open against 658 closed. The project says it is not sponsored, so it rests on volunteer maintainers. Major versions come roughly once a year and bring Node-floor and output changes.
- github.commitsLastYear: 519 commits and 21 releases in the last year
- github.openIssues: 62 open vs 658 closed issues
- github.com/conventional-changelog/commitlint: States it is not a sponsored OSS project
- github.com/conventional-changelog/commitlint/releases: v21.0.0 (May 2026) dropped Node 18/20 and changed output format
GPT-6.2 Sol: 7.8, likely 6.5 to 8.8
The repository recorded 519 commits and 21 releases in the past year, with fixes from several contributors. One maintainer published the recent GitHub releases, and long-term funding and backup publishing access are unclear. The v21 runtime and output changes add upgrade work, and a reported Docker configuration bug took about six months to reach a release.
- github commitsLastYear and releasesLastYear: 519 commits and 21 releases in the past year.
- github.com/conventional-changelog/commitlint/releases: Recent releases have one visible publisher and fixes from multiple contributors.
- github.com/conventional-changelog/commitlint/releases/tag/v21.0.0: Raised the Node.js minimum and changed the default output format.
- github.com/conventional-changelog/commitlint/issues/4623: User reported the Docker config bug in February, and it closed in August.
- github.com/conventional-changelog/commitlint/releases/tag/v21.2.2: Shipped the Docker configuration fix and Yarn Plug'n'Play support.
Used widely7.1
How many use it, and is that growing?
Claude Opus 5.5: 7.5, likely 6.5 to 8.0
It has 62M downloads in 4 weeks and 173k dependent repos, so many projects choose it directly. The yearly ratio of about 3.2 is below the 4.1 median, but it is on par with Husky and lint-staged, so its share is stable rather than growing. Project templates inflate the downloads somewhat.
- npm downloadsLast4Weeks: 62.1M vs 19.3M a year ago, ratio about 3.2
- medianDownloadsRatio: Median 4.1, so it is slightly below the median
- dependents.packages: 31k dependent npm packages
GPT-6.2 Sol: 6.7, likely 5.5 to 7.8
ecosyste.ms found about 173,000 dependent repositories and 31,000 dependent npm packages. The repository count trails Husky and lint-staged and exceeds semantic-release in the same dataset. Four-week downloads grew from 19.3 million to 62.1 million, or 3.22×, below the 4.1× catalog baseline and consistent with falling relative share. Repeat CI installs, partial repository coverage, and sparse social signals leave the number of new adopters uncertain.
- dependents repos and packages: 173,254 dependent repositories and 30,958 dependent packages.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Downloads grew 3.22× against the 4.1× baseline.
- peers dependentRepos: Husky and lint-staged lead on observed repositories.
- github stars, bluesky posts, and hackerNews stories: 18,836 stars, one Bluesky post, and zero matched Hacker News stories.
Vouched for7.0
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It is the commit linter that Husky-based setups, tutorials and release workflows reach for, and its dependent count is large. There is little current independent review, survey data or benchmark work, and Hacker News and Bluesky barely mention it. So validation rests mostly on broad adoption and ecosystem pairing.
- hackerNews.stories: No HN stories
- bluesky.posts: Only 1 Bluesky post, from a bot-like listing
- dev.to/jordharr/how-to-enforce-conventional-commit-messages-using-git-hooks-with-husky-commitlint-537j: Independent guide pairs it with Husky as the standard setup
- dependents.repos: 173k dependent repos
GPT-6.2 Sol: 7.4, likely 6.2 to 8.5
FormatJS runs commitlint through Lefthook, and Rucio relies on it in CI. An independently maintained tooling catalog selected it after reviewing Rust alternatives and called out the Node.js requirement. Current evidence is stronger for real workflow use than for developer satisfaction or comparative performance.
- github.com/formatjs/formatjs/blob/main/lefthook.yml: FormatJS invokes commitlint in its commit-msg hook.
- rucio.github.io/documentation/contributing: Rucio documents CI enforcement and optional local checks.
- github.com/mokevnin/dev-quality-gates/blob/main/tools.json: October 2026 review selected commitlint after comparing three Rust alternatives.
- 2025.stateofjs.com/en-US/other-tools: The survey provides no commitlint-specific satisfaction measure.
Safe7.8
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
No advisories are on record, the licence is MIT, and it has 8 direct dependencies. A 2026 release replaced lodash with es-toolkit, which shrinks the tree. No Scorecard data is available, and it ships as many @commitlint packages, which keeps the range open. It usually runs only as a dev dependency.
- advisories.total: 0 advisories
- npm dependencies: 8 direct dependencies
- scorecard: No Scorecard data
- github.com/conventional-changelog/commitlint/releases: v20.5.3 replaced lodash dependencies with es-toolkit/compat
GPT-6.2 Sol: 7.5, likely 6.1 to 8.5
The CLI uses the permissive MIT license, has eight direct dependencies, and has zero advisories in the supplied OSV data. The project runs a weekly dependency audit and has shipped security updates for dependencies. The audit is non-blocking, GitHub shows no published security policy, and npm publishing controls and release provenance remain unverified. The missing OpenSSF Scorecard also limits confidence.
- npm license and dependencies: MIT license and eight direct dependencies.
- advisories total and scorecard: Zero recorded OSV advisories and no collected Scorecard.
- github.com/conventional-changelog/commitlint/security: GitHub lists no security policy or published repository advisories.
- github.com/conventional-changelog/commitlint/blob/v21.2.4/.github/workflows/audit.yml: Runs a weekly non-blocking audit for high-severity findings.
- github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md: Records security updates to glob and tar-fs.
Good
- It is the de facto commit-message linter, with a large shared config ecosystem (config-conventional, plus pnpm, lerna and workspace scope configs).
- It works the same in a commit-msg hook and in CI with --from/--to, so local and pull-request checks match.
- It is actively maintained, with 21 releases and over 500 commits in the past year.
- It has no known advisories, 8 direct dependencies and an MIT licence.
Bad
- Since v21 it requires Node 22.12 or later, which shuts out projects on older Node.
- It only lints messages. You still need a hook manager and a release tool.
- Its run of major versions has brought config-loading and output-format changes that teams must follow.
- It is run by volunteers with no sponsorship, so it depends on a few maintainers.
The numbers
- npm downloads, 4 weeks
- 62M ×3.2 in a year
- GitHub stars
- 19k
- Commits, 12 months
- 519
- npm version
- 21.2.4 Oct 2026
- Versions, 12 months
- 20
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (conventional-changelog/commitlint), npm (@commitlint/cli), OSV and the OpenSSF Scorecard.
Git hooks and release tools
- 7.9lint-staged
- 7.9commitlint
- 7.6Lefthook
- 7.6semantic-release
- 7.1release-it
- 7.1Husky
- 7.0release-please
- 6.4bumpp
- 6.3np
- 6.1simple-git-hooks