@xip-online-applications/commitlint-config
v0.2.1
Published
Company-wide [Commitlint](https://commitlint.js.org/) config for using conventional commits, plus other commit lint rules we want to enforce.
Downloads
72
Readme
Commitlint config
Company-wide Commitlint config for using conventional commits, plus other commit lint rules we want to enforce.
Usage
Install
npm i -D husky @xip-online-applications/commitlint-config
Add Husky install
Add husky install
to your prepare
script in package.json
so that husky is installed when you run npm/yarn/pnpm install
.
"scripts": {
"prepare": "husky install",
// ...
}
Add Commit hook with Husky
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'