@commitlint/cz-commitlint
TypeScript icon, indicating that this package has built-in type declarations

19.5.0 • Public • Published

Commitizen adapter using the commitlint.config.js

@commitlint/cz-commitlint

This is a commitizen adapter, using this adapter, commitizen works based on commitlint.config.js.

Submit by commitizen, lint by commitlint, just need maintain one configuration file, Consistent and Scalable.

The interactive process is inspired by cz-conventional-changelog.

Getting started

Configure commitizen adapter

npm install --save-dev @commitlint/cz-commitlint commitizen inquirer@9  # inquirer is required as peer dependency
# or yarn
yarn add -D @commitlint/cz-commitlint commitizen inquirer@9             # inquirer is required as peer dependency

In package.json

{
  "scripts": {
    "commit": "git-cz"
  },
  "config": {
    "commitizen": {
      "path": "@commitlint/cz-commitlint"
    }
  }
}

Configure commitlint

⚠️ Important: The required version of commitlint and shared configuration is above 12.1.2, update them if already existed in project

# Install commitlint cli and conventional config
npm install --save-dev @commitlint/config-conventional @commitlint/cli
# or yarn
yarn add @commitlint/config-conventional @commitlint/cli -D

# Simple: config with conventional
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js

Try it out

git add .
npm run commit
# or yarn
yarn commit

Related

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
19.5.017,812latest

Version History

VersionDownloads (Last 7 Days)Published
19.5.017,812
19.4.07,800
19.2.010,043
19.1.0138
19.0.3124
19.0.20
19.0.17
19.0.067
18.6.19,038
18.6.0527
18.5.095
18.4.41,042
18.4.31,075
18.4.224
18.4.1333
18.4.06
18.2.0354
18.1.06
18.0.026
17.8.113,274
17.8.0169
17.7.2434
17.7.11,256
17.7.080
17.6.7344
17.5.04,113
17.4.41,132
17.4.21,550
17.4.1140
17.4.02
17.3.0487
17.2.0175
17.1.2360
17.1.10
17.1.00
17.0.31,174
17.0.0286
16.3.02,394
16.2.454
16.2.3205
16.2.192
16.1.088
16.0.329
16.0.08
15.0.0654
14.1.0571
14.0.02
13.2.1925
13.2.02
13.1.03
13.0.02
12.1.4136
12.1.32
12.1.22
1.0.02

Package Sidebar

Install

npm i @commitlint/cz-commitlint

Weekly Downloads

78,664

Version

19.5.0

License

MIT

Unpacked Size

70.1 kB

Total Files

64

Last publish

Collaborators

  • marionebl
  • martinhelmut
  • escapedcat
  • bycedric