Lint your commits, patternplate-style. This is a shareable commitlint configuration that enforces the patternplate commit convention, based on conventional-changelog. Current stable version is 20.5.3 (April 2026). Release cadence is frequent (~every few weeks) with minor patches and features. Key differentiator: opinionated patternplate style with specific header, scope, and footer rules. Requires commitlint v20 and Node >=v18. ESM-only since v20.
npm install commitlint-config-patternplateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures commitlint with patternplate style, overriding header max length to 72 characters.
Upgrade Node to v18 or higher
Use dynamic import() in CJS or switch to ESM config (.commitlintrc.js with type:module)
Add 'type': 'module' to package.json or rename config to .commitlintrc.mjs
Deep clone the rules object before mutation: structuredClone(rules)
Set extends to 'commitlint-config-patternplate' (string), not ./node_modules/...
Rename config to .commitlintrc.mjs or use dynamic import: const config = await import('commitlint-config-patternplate');Run: npm install --save-dev @commitlint/config-conventional
Check rule names from patternplate configuration (e.g., header-max-length, scope-case) and ensure they are arrays [level, applicable, value]
Upgrade commitlint and all config packages to v20: npm install commitlint@latest @commitlint/cli@latest commitlint-config-patternplate@latest