Litebox commitizen adapter using the commitlint.config.js. This is a fork of @commitlint/cz-commitlint
> Commitizen adapter using the commitlint.config.js
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.
``bash`
npm install --save-dev @hello-litebox/commit-prompt commitizen inquirer@8 # inquirer is required as peer dependencyor yarn
yarn add -D @hello-litebox/commit-prompt commitizen inquirer@8 # inquirer is required as peer dependency
In package.json
`json`
{
"scripts": {
"commit": "git-cz"
},
"config": {
"commitizen": {
"path": "@hello-litebox/commit-prompt"
}
}
}
⚠️ Important: The required version of commitlint and shared configuration is above 12.1.2, update them if already existed in project
`bashInstall commitlint cli and conventional config
npm install --save-dev @commitlint/config-conventional @commitlint/clior yarn
yarn add @commitlint/config-conventional @commitlint/cli -D
$3
`bash
git add .
npm run commit
or yarn
yarn commit
``- Commitlint Reference Prompt - How to customize prompt information by setting commitlint.config.js