@binz/config-commitlint
v1.0.2
Published
Shared commitlint config
Readme
Shared commitlint configuration
Automatically validate commit messages on commit with commitlint.
commitlint ensures that commit messages meet the conventional commit format.
type(scope?): subjectSetup
Add workspace reference to
@binz/config-commitlintand its peer dependencies:pnpm add -w @binz/config-commitlint @commitlint/cliAdd 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
commitlintexecution on commit.
