Open gegenschall opened 1 week ago
.commitlintrc.json
{ "extends": ["@commitlint/config-conventional"], "parserPreset:": { "parserOpts": { "issuePrefixes": ["PREFIX-"] } }, "rules": { "references-empty": [2, "never"] } }
echo "feat: some feature (PREFIX-123)" | npx commitlint
npx commitlint --print-config
parserPreset.parserOpts.issuePrefixes
[ '#' ]
With a commitlint.config.js this does not happen.
commitlint.config.js
see above.
It should correctly pick up parserPreset from the JSON configuration.
parserPreset
No response
@commitlint/cli@19.3.0
2.45.2
v20.13.1
Steps to Reproduce
.commitlintrc.json
with the following contentsecho "feat: some feature (PREFIX-123)" | npx commitlint
and observe how an error for empty references is thrown.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
Possible Solution
No response
Context
No response
commitlint --version
@commitlint/cli@19.3.0
git --version
2.45.2
node --version
v20.13.1