@commitlint/ensure

  • Version 17.0.0
  • Published
  • 23.2 kB
  • 2 dependencies
  • MIT license

Install

npm i @commitlint/ensure
yarn add @commitlint/ensure
pnpm add @commitlint/ensure

Overview

Lint your commit messages

Index

Functions

function case

case: (raw?: string, target?: TargetCaseType) => boolean

    function enum

    enum: (value: any, enums?: any[]) => boolean

      function maxLength

      maxLength: (value: string, max: number) => boolean;

        function maxLineLength

        maxLineLength: (value: string, max: number) => boolean;

          function minLength

          minLength: (value: string, min: number) => boolean;

            function notEmpty

            notEmpty: (value: string) => boolean;

              function toCase

              toCase: (input: string, target: TargetCaseType) => string;

                Package Files (8)

                Dependencies (2)

                Dev Dependencies (3)

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@commitlint/ensure.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@commitlint/ensure)
                • HTML
                  <a href="https://www.jsdocs.io/package/@commitlint/ensure"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>