@w5s/conventional-changelog
TypeScript icon, indicating that this package has built-in type declarations

2.0.14 • Public • Published

W5S Commitlint configuration (@w5s/conventional-changelog)

NPM Version License

Conventional changelog plugin for @w5s

Installation

npm install --save-dev @w5s/conventional-changelog @commitlint/cli

Usage

In the package.json of your project

{
  "commitlint": {
    "extends": ["@w5s/conventional-changelog"]
  }
}

Extra rules

{
  "commitlint": {
    "rules": {
      // Rule to validate gitmoji unicode (🐛) or emoji (:bug:)
      "type-gitmoji-style": ["error", "always", "unicode" /* | 'emoji' */],
      // Rule to validate a gitmoji in the list
      "type-valid-gitmoji": ["error", "always"]
    }
  }
}

Ensure the commitlint is setup on husky commit message hook (default .husky/commit-msg)

commitlint --edit $1
# -OR-
npm exec -- commitlint --edit $1

License

MIT © Julien Polo julien.polo@gmail.com

Readme

Keywords

none

Package Sidebar

Install

npm i @w5s/conventional-changelog

Weekly Downloads

1,856

Version

2.0.14

License

MIT

Unpacked Size

40 kB

Total Files

34

Last publish

Collaborators

  • jpolo