danger-plugin-conventional-commitlint is a Danger JS plugin that runs commitlint rules against pull request commit messages to enforce conventional commit formats. Current stable version is 3.1.0 (Dec 2025) with release cadence tied to commitlint major upgrades. Key differentiators: integrates directly with Danger's CI workflow, supports custom messages via messageReplacer, and requires Node.js >=20. Alternatives include manual commitlint checks in CI or other Danger linting plugins.
npm install danger-plugin-conventional-commitlintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure commitlint plugin in Dangerfile with custom rules, severity, and message replacer.
Upgrade Node to v18 or later.
If using older commitlint config or Node <12, upgrade accordingly.
Always provide a valid rules object (e.g., from @commitlint/config-conventional).
Set `severity: 'warn'` in options to avoid blocking PRs.
Add "type": "module" to package.json or use .mjs extension for Dangerfile.
Use one of 'fail', 'warn', or 'message'.
Use `import commitlint from 'danger-plugin-conventional-commitlint'` (default import).