@episerver/commitlint-plugin-references

1.0.0 • Public • Published

@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-"]
        }
    }
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    89
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    89

Package Sidebar

Install

npm i @episerver/commitlint-plugin-references

Weekly Downloads

89

Version

1.0.0

License

MIT

Unpacked Size

5.73 kB

Total Files

8

Last publish

Collaborators

  • johanpetersson
  • ryanbare
  • barteksekula
  • alwa
  • robinjac