@ngx-devs/commitlint-plugin-imperative
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Commitlint Imperative Plugin

A Commitlint plugin to ensure that commits are made using imperative mood.

Build NPM Version Install Size Top Language GitHub last commit License

AboutInstallationUsageAuthorLicense

ℹ️ About

If you want to write a git commit message properly, you should use the imperative mood. This means you need to eliminate the temptation to use gerunds or past tense in your subject lines. Don't write a git commit subject line that talks about what you did, or what you are doing. Instead, describe what was done.

Use this plugin to enforce this rule.


▶️ Installation

#install
npm install -D @ngx-devs/commitlint-plugin-imperative

🤖 Usage

Set your commitlint config to:

{
    plugins: ["@ngx-devs/commitlint-plugin-imperative"],
    rules: {
        "imperative-rule/en": [2, "always", ]
    }
}

Example

$ git commit -m "adding a project"
⧗   input: adding a project
✖   This commit is in the gerund. Please use the imperative form. [imperative-rule/en]

✖   found 1 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

👦 Author

Profile Photo Gleison Almeida
Gleison de Almeida

Developed with ❤️ by Gleison Almeida
👋🏽 My Contacts:

Linkedin Badge Github Badge Outlook Badge


⚖️ License

Copyright © 2021 Gleison Almeida.
This project is licensed by MIT.

Package Sidebar

Install

npm i @ngx-devs/commitlint-plugin-imperative

Weekly Downloads

10

Version

1.1.4

License

MIT

Unpacked Size

11.9 kB

Total Files

11

Last publish

Collaborators

  • gleison