Skip to content

commitlint-config 1.1.0

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

About this version

@releaseband/commitlint-config

commitlint shareable config

Installing

npm i -D @releaseband/commitlint-config
npx install-peerdeps --dev @releaseband/commitlint-config

create .commitlintrc.json file in the root project folder:

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

Installing commitizen tool

npm i -D @commitlint/cz-commitlint commitizen

create .cz.json file in the root project folder:

{
  "path": "@commitlint/cz-commitlint"
}

add script in package.json file:

{
  "scripts": {
    "commit": "cz"
  }
}

Add husky hook

initialize husky:

npx husky-init && npm install

add commit-msg hook:

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

Details


Assets

  • commitlint-config-1.1.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all