@episerver/commitlint-plugin-references
v1.0.0
Published
A `commitlint` rule for conditionally requiring references in commit messages for given types.
Downloads
185
Readme
@episerver/commitlint-plugin-references
A commitlint
rule for conditionally requiring references in commit messages for given types.
Installation
yarn
yarn add --dev @episerver/commitlint-plugin-references
npm
npm install --save-dev @episerver/commitlint-plugin-references
Usage
To configure that references should never be empty for fix
and feat
. It is also possible to specify the issue prefix in parserPreset
, the default value is #
.
module.exports = {
plugins: [
"@episerver/references"
],
rules: {
"references-empty-enum": [
2,
"never",
[
"fix",
"feat"
]
]
},
parserPreset: {
parserOpts: {
issuePrefixes: ["ABC-"]
}
}
};