Skip to content

Request: Support Multiple Cases for commit-scope #307

@Undistraction

Description

@Undistraction

Current Behavior

Currently it is only possible to choose a single item from the following list:

- 'lower-case', // default
- 'upper-case', // UPPERCASE
- 'camel-case', // camelCase
- 'kebab-case', // kebab-case
- 'pascal-case', // PascalCase
- 'sentence-case', // Sentence case
- 'snake-case', // snake_case
- 'start-case', // Start Case

However it would be great to be able to choose a subset. For example we would like to restrict scope to either kebab-case or camel-case (because we use function names as scope sometimes). At present our only option is to disable the rule entirely.

Possible Solution

Allow multiple casings to be selected:

"rules": {
    "scope-case": [2, ['camel-case', 'kebab-case']],
  }

This could also apply to type-case and subject-case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions