Copied from https://github.com/marionebl/commitlint/pull/76#issuecomment-343773042
Hi @marionebl, thanks for that! I've followed the examples and I couldn't get it to work. Maybe you can help?
// commitlint.config.js
module.exports = {
'extends': [
'@commitlint/config-angular',
'@commitlint/config-lerna-scopes'
],
'parserPreset': './parser-preset',
'rules': {
'references-empty': [2, 'never'],
}
}
// parser-preset.js
module.exports = {
parserOpts: {
issuePrefixes: ['TEST-']
}
};
When I run
echo "chore: TEST-1 Test Message" | ./node_modules/.bin/commitlint
I get ✖ references may not be empty [references-empty]
Edit: Removed unrelated issue description
Copied from https://github.com/marionebl/commitlint/pull/76#issuecomment-343773042
Hi @marionebl, thanks for that! I've followed the examples and I couldn't get it to work. Maybe you can help?
// commitlint.config.js
// parser-preset.js
When I run
I get
✖ references may not be empty [references-empty]Edit: Removed unrelated issue description