@kode-frontend/commitlint-config
📥 Install
Add @kode-frontend/commitlint-config
dependency to your project.
# Using npm
npm i --save-dev @commitlint/cli @kode-frontend/commitlint-config
# Using yarn
yarn add -D @commitlint/cli @kode-frontend/commitlint-config
# Using pnpm
pnpm add -D @commitlint/cli @kode-frontend/commitlint-config
🎮 Usage
There are two approaches to extend this shared config.
1. (Preferred) Reference it in your package.json
// commitlint.config.js
module.exports = {
extends: ['@kode-frontend/commitlint-config'], // => @kode-frontend/commitlint-config
}
2. Or just the scope/owner of the package.
Just like "normal" extends listed above, this will add <scope>/commitlint-config
.
// commitlint.config.js
module.exports = {
extends: ['@kode-frontend'], // => @kode-frontend/commitlint-config
}