Skip to content

commitlint-config 1.9.9

Install from the command line:
Learn more about npm packages
$ npm install @sisense/commitlint-config@1.9.9
Install via package.json:
"@sisense/commitlint-config": "1.9.9"

About this version

Commitlint config

Shared commitlint config for sisense projects

The module that checks if your commit messages meet the conventional commit format, follows conventional commits specification for linting your commits.

Install

The module should be installed together with its peer dependencies, that contain only commitlint itself.

# install via npm
$ npm install --save-dev @commitlint/cli @sisense/commitlint-config


# install via yarn
$ yarn add --dev @commitlint/cli @sisense/commitlint-config

Usage

Configuration

For using this config for you project it is suggested to use next configuration (.commitlintrc.json):

{
    "extends": ["@sisense/commitlint-config"]
}

Setup pre-commit hook

Next code snippets is suggested to install pre-commit hook (requires already installed husky package):

npx husky add hooks/commit-msg 'npx --no-install commitlint --edit $1'

Setup repository push rules

Next regular expressions are suggested to be set to push rules on repository level:

  • Require expression in commit messages:
    ^((Notes added by \'git notes add\')|((feat|fix|chore|docs|ci|style|refactor|perf|test|revert)(\(.+\))?(!)?\:\s(.{3,})))
    
  • Reject expression in commit messages:
    (.{100,}\n?)+
    

Details


Assets

  • commitlint-config-1.9.9.tgz

Download activity

  • Total downloads 6,285
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all