Expected Behavior
On extending config with rule type-enum should be capaility override this rule
Current Behavior
I has package with rules extending @commitlint/config-conventional. When I try use him in project that: 1) rule type-enum is a concatenation @commitlint/config-conventional and @ptsecurity/commitlint-config
2) on trying do commit with a wrong type that display this concatenation
type must be one of [feat, fix, docs, refactor, test, perf, bump, chore, revert, style, test] [type-enum]
Affected packages
Possible Solution
Steps to Reproduce (for bugs)
- Clone prepared repo https://github.com/imrekb/issue-concatenation-type-enum
- Try execute commit with message
wrong: blah-blah
- Display unexpected enum is concatenation @commitlint/config-conventional and @ptsecurity/commitlint-config
commitlint.config.js
module.exports = {
extends: ['@ptsecurity/commitlint-config'],
rules: {
'scope-enum': [
2,
'always',
[
// as examples
'app',
'common'
]
]
}
};
Context
Your Environment
| Executable |
Version |
commitlint --version |
7.2.1 |
git --version |
2.17.1 |
node --version |
8.11.2 |
Expected Behavior
On extending config with rule
type-enumshould be capaility override this ruleCurrent Behavior
I has package with rules extending
@commitlint/config-conventional. When I try use him in project that: 1) ruletype-enumis a concatenation @commitlint/config-conventional and @ptsecurity/commitlint-config2) on trying do commit with a wrong type that display this concatenation
type must be one of [feat, fix, docs, refactor, test, perf, bump, chore, revert, style, test] [type-enum]Affected packages
Possible Solution
Steps to Reproduce (for bugs)
wrong: blah-blahcommitlint.config.js
Context
Your Environment
commitlint --versiongit --versionnode --version