@dwmt/commitlint-config-github-type

1.1.0 • Public • Published

Commitlint Numbered Type | Config

Default configuration for the github-type commitlint plugin.

Configurable Rules

github-type offers the following configurable rules. By customizing these rules, you can define which messages should be accepted and rejected.

github-type-type-enum

An enumeration of accepted types. If the type within the message is not included, then the message is rejected. By default, the value of this setting is undefined, which means that every type is accepted.

If you want to accept feat and fix only:

// commitlint.config.js
module.exports = {
  plugins: ['@dwmt/commitlint-plugin-github-type'],
  extends: ['@dwmt/commitlint-config-github-type'],
  rules: {
     // 2 sets the level of this rule to error.
     // always means that this rule should be applied as is
     // (the other value is "never", which inverts the rule) 
     'github-type-type-enum': [2, 'always', ['feat', 'fix']] 
  }
}

Further Information

Please see the README of the parent monorepo.

Package Sidebar

Install

npm i @dwmt/commitlint-config-github-type

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

3.6 kB

Total Files

4

Last publish

Collaborators

  • lajoskvcs
  • baximus
  • battila7