commitlint-plugin-spend
Commitlint plugin to enforce the use of spend directives in commit messages.
Available rules
spend
-
condition:
body
ends with a valid spend directive -
rule:
always
Usage
- Install the plugin:
npm i -D commitlint-plugin-spend
yarn add -D commitlint-plugin-spend
pnpm add -D commitlint-plugin-spend
bun add -d commitlint-plugin-spend
- Add the plugin to your
commitlint
configuration:
{
"extends": ["@commitlint/config-conventional"],
"plugins": ["commitlint-plugin-spend"]
}
- Configure the
spend
rule in yourcommitlint
configuration:
{
"rules": {
"spend": [2, "always"]
}
}