Socket
Book a DemoInstallSign in
Socket

commitlint-plugin-references

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitlint-plugin-references

A `commitlint` rule for conditionally requiring references in commit messages for given types.

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

commitlint-plugin-references

A commitlint rule for conditionally requiring references in commit messages for given types.

Forked from https://github.com/episerver/commitlint-plugin-references But since it seems not be maintained. So I forked it and make a new package.

Installation

yarn

yarn add --dev commitlint-plugin-references

npm

npm install --save-dev 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: [
        "references"
    ],
    rules: {
        "references-empty-enum": [
            2,
            "never",
            [
                "fix",
                "feat"
            ]
        ]
    },
    parserPreset: {
        parserOpts: {
            issuePrefixes: ["ABC-"]
        }
    }
};

Keywords

commitlint

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.