Skip to content

[Feature Request] Set 'allowEmptyScopes' based on commitlint config #15

Closed
@jaklan

Description

💭 Describe the feature

Respect commitlint option about empty scopes by default, when there's no option set for cz-git explicitly:

  rules: {
    "scope-empty": [2, "never"]
  }

https://commitlint.js.org/#/reference-rules?id=scope-empty

💡 Proposed Solution

Fallback to commitlint config when the cz-git one is not specified directly.

If the commitlint setting is in the warning mode (1) instead of the error one (2), we could either ignore it or maybe provide some additional message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions