@episerver/commitlint-plugin-references
A `commitlint` rule for conditionally requiring references in commit messages for given types.
Last updated a year ago by ben_mckernan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @episerver/commitlint-plugin-references 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |