conventional-changelog / conventional-changelog/commitlint
Allow per-type scope-enum
- Dominant language
- TypeScript
- Stars
- 18.7k
- Forks
- 970
- Avg merge
- 7h 33m
- Merged PRs (30d)
- 49
Description
## Expected Behavior
I'd like to limit the valid scopes on a per-type basis. For example, the `docs` type should accept `all` and each of my lerna packages as scopes, but the `build` type should perhaps accept only `npm`, `webpack`, `babel`.
## Current Behavior
I can specify valid types and valid scopes, but not tuples of which ones are valid together.
## Affected packages
* [ ] cli
* [x] core
* [ ] prompt
* [ ] config-angular
## Possible Solution
Allow one (or both) of `scopes-enum` and `types-enum` to accept an object instead of an array. Alternatively, introduce a new rule that accepts an object.
Contributor guide
Assessment
This issue has not been assessed yet.