@binz/config-commitlint
v1.0.1
Published
Shared commitlint config
Downloads
9
Readme
Shared commitlint configuration
Automatically validate commit messages on commit with commitlint
.
commitlint
ensures that commit messages meet the conventional commit format.
type(scope?): subject
Setup
Add workspace reference to
@binz/config-commitlint
and its peer dependencies:pnpm add -w @binz/config-commitlint @commitlint/cli
Add commitlint configuration file to the repository root:
// .commitlintrc.js module.exports = require('@binz/config-commitlint');
Add commitlint scripts to root
package.json
:// package.json "scripts": { ... "commitlint": "commitlint" ... }
Automation
- Setup ➡ husky to schedule
commitlint
execution on commit.