Open
Description
Steps to Reproduce
- Create
.commitlintrc.json
with the following contents
{
"extends": ["@commitlint/config-conventional"],
"parserPreset:": {
"parserOpts": {
"issuePrefixes": ["PREFIX-"]
}
},
"rules": {
"references-empty": [2, "never"]
}
}
- Run
echo "feat: some feature (PREFIX-123)" | npx commitlint
and observe how an error for empty references is thrown. - Run
npx commitlint --print-config
and observe howparserPreset.parserOpts.issuePrefixes
is[ '#' ]
.
With a commitlint.config.js
this does not happen.
Current Behavior
see above.
Expected Behavior
It should correctly pick up parserPreset
from the JSON configuration.
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Context
No response
commitlint --version
@commitlint/[email protected]
git --version
2.45.2
node --version
v20.13.1