Open javier-garcia-meteologica opened 3 years ago
Hi, is this related to or a duplicate of #2108?
@escapedcat, I don't think so. The issue you linked refers to scopes in commit headers, like fix(@foo/bar): fix some bug
.
Here I'm referring to presets used in commitlint configurations
module.exports = {
parserPreset: '@my-org/conventional-changelog-my-org',
rules: {
...
}
};
Ok, thanks for checking
conventional-changelog supports scoped package names
@scope/conventional-changelog-custom-preset
but commitlint doesn't.https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog#preset
commitlint will only load presets that start with
'conventional-changelog-'
, without scopes.https://github.com/conventional-changelog/commitlint/blob/73c30c3c7bb119dcde947b6dde26596cd9c983f4/%40commitlint/load/src/utils/load-parser-opts.ts#L18-L22
It's also very difficult to troubleshoot because there is no error. Commitlint silently ignores parserOpts and uses the default options instead.