• Version 13.1.0
  • Published
  • 20.6 kB
  • 2 dependencies
  • MIT license


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


Lint your commit messages



function case

case: (raw?: string, target?: any) => 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;

              Package Files (7)

              Dependencies (2)

              Dev Dependencies (3)

              Peer Dependencies (0)

              No peer dependencies.


              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
              • 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>