Skip to content

use commitlint to enforce scopes #45

@daniellacosse

Description

@daniellacosse

a commitlint.config.js file like this:

module.exports = {
  extends: ['@commitlint/config-conventional'],
  rules: {
    'scope-enum': [
      2,
      'always',
      [
        'spinner',
        'storybook',
        'web',
        'devtools',
        'dependencies'
      ],
    ],
  },
};

we can get these scopes in the husky hook with https://github.com/leoforfree/cz-customizable

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotfilesImprovements or additions to documentation and devtoolingsize/S

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions