@commencis/commitlint-config
v1.1.0
Published
Commencis Commitlint config
Downloads
517
Readme
@commencis/commitlint-config
This package provides the Commitlint configuration for enforcing commit message conventions within Commencis projects. With predefined rules, it ensures consistency and clarity across commit messages.
Installation
To use this Commitlint configuration in your project, simply install it as a dev dependency:
With npm
:
npm install --save-dev @commitlint/cli @commencis/commitlint-config
With yarn
:
yarn add --dev @commitlint/cli @commencis/commitlint-config
With pnpm
:
pnpm add --save-dev @commitlint/cli @commencis/commitlint-config
Recommended: Use Husky for Git-Hooks
Install dependencies
npm install --save-dev husky
Initialize husky and create your ./husky/commit-msg
hook as follows:
npx --no-install commitlint --edit "$1"
Usage
Once installed, you can reference this configuration in your project's Commitlint configuration file, typically named commitlint.config.js
.
module.exports = {
extends: ['@commencis/commitlint-config'],
};
Contribution
We welcome contributions to improve this package. Feel free to open issues or pull requests to suggest enhancements or report any issues.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
© Commencis, 2024. All rights reserved.