commitlint-plugin-spend

1.0.1 • Public • Published

commitlint-plugin-spend

Commitlint plugin to enforce the use of spend directives in commit messages.

Available rules

spend

Usage

  1. 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
  1. Add the plugin to your commitlint configuration:
{
  "extends": ["@commitlint/config-conventional"],
  "plugins": ["commitlint-plugin-spend"]
}
  1. Configure the spend rule in your commitlint configuration:
{
  "rules": {
    "spend": [2, "always"]
  }
}

License

MIT

Package Sidebar

Install

npm i commitlint-plugin-spend

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

13.1 kB

Total Files

12

Last publish

Collaborators

  • nico-i