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

/@episerver/commitlint-plugin-references/

    Package Sidebar

    Install

    npm i @episerver/commitlint-plugin-references

    Weekly Downloads

    47

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.73 kB

    Total Files

    8

    Last publish

    Collaborators

    • johanpetersson
    • ryanbare
    • barteksekula
    • alwa
    • robinjac