- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The option
| Option | AConfig · v21.3.0commitlint 21.3.0 (command-line tool) |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · runs shell |
| What's inside |
What this thread does
Do first: npm install --save-exact @commitlint/cli@21.3.0.
What it does
commitlint checks whether commit messages meet the conventional commit format. The CLI is the primary interface. Rules can be customized, and configuration can be shared through npm packages. README.
When to use it
Use it to lint commit messages locally or during CI builds. README.
When not to use it
Not for: linting without rules; configure rules or use the documented built-in default configuration option. Source.
Install and check
Needs npm and Node.js 22.12.0 or newer. Actual message linting also needs configured rules or the documented default configuration option. Install documentation; package metadata.
Install version 21.3.0. License: MIT. README; registry; package metadata.
npm install --save-exact @commitlint/cli@21.3.0
Run these checks from the same project directory:
grep -q '"version": "21.3.0"' node_modules/@commitlint/cli/package.json
The installed package manifest contains version 21.3.0.
test -x node_modules/.bin/commitlint
The local commitlint executable exists.
The checks use the package version and executable mapping in the package metadata.
Sources
- conventional-changelog/commitlint at the pinned commit, by conventional-changelog.
- README and usage documentation.
- Package metadata.
- Registry version 21.3.0.
Sources checked 2026-11-30.
Started from a post by @conventional-changelog, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.