commitlint
Enforces conventional commit message format using linting rules.
Dev workflow and config npm MIT
How commitlint is used
commitlint is a dependency in 13 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 31 projects, and what it is used with below comes from all of them. Projects that use it most often also use Prettier (80.6%), lint-staged (67.7%), Husky (64.5%).
commitlint popularity over time
Gid Score 50: downloads 55, use in agent projects 34, GitHub stars 60, downloads trend 52 (each 0-100). How it is calculated.
Often used with commitlint
| Prettier | 80.6% of commitlint projects · 3.8× more than average |
|---|---|
| lint-staged | 67.7% of commitlint projects · 8.7× more than average |
| Husky | 64.5% of commitlint projects · 6.3× more than average |
| semantic-release | 58.1% of commitlint projects · 73.6× more than average |
| Zustand | 54.8% of commitlint projects · 9.4× more than average |
| ESLint | 87.1% of commitlint projects · 2.4× more than average |
| Vercel Analytics | 51.6% of commitlint projects · 14.3× more than average |
| Consola | 51.6% of commitlint projects · 246.5× more than average |
From all 31 projects in our scan that use commitlint, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| Cursor | 0.3% of projects set up for it |
| OpenCode | 1.8% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list commitlint as a dependency.
Install
| Package | npm install commitlint |
|---|---|
| Main stacks | Next.js (16), TypeScript / JavaScript (10), Python (3), React Native / Expo (1) |
| Example projects | lobehub/lobehub, koumoul-dev/vuetify-jsonschema-form, vual/lobe-chat-pro, zxc7563598/php-bilibili-danmu, NVIDIA/elements |
Alternatives to commitlint
In our scan, none of the most used tools in Dev workflow and config does the same job as commitlint: they are add-ons, companions or tools for a different task.
More in Dev workflow and config: dotenv Husky python-dotenv lint-staged concurrently Rich Pydantic Settings cross-env