@linter-spec/commitlint-config
v1.0.0
Published
Shareable commitlint config used by linter-spec — conventional-commits based.
Maintainers
Readme
@linter-spec/commitlint-config
Shareable commitlint configuration enforcing Conventional Commits used by the linter-spec toolchain.
Install
pnpm add -D @linter-spec/commitlint-config @commitlint/cliUse
Add a commitlint.config.cjs at your project root:
module.exports = {
extends: ['@linter-spec/commitlint-config'],
};Then wire it into a commit-msg git hook (husky v9):
pnpm exec husky init
echo 'pnpm exec commitlint --edit "$1"' > .husky/commit-msgWhat it enforces
| Rule | Setting |
| --- | --- |
| type-enum | feat / fix / docs / style / refactor / perf / test / build / ci / chore / revert |
| header-max-length | 100 |
| body-max-line-length | 100 |
| subject-case | not sentence / start / pascal / upper |
| subject-empty | required |
| scope-case | lower-case |
| type-empty | required |
| body-leading-blank / footer-leading-blank | warn |
License
MIT © SotherWind
