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.
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
Install dependencies
npm install --save-dev husky
Initialize husky and create your ./husky/commit-msg
hook as follows:
npx --no-install commitlint --edit "$1"
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'],
};
We welcome contributions to improve this package. Feel free to open issues or pull requests to suggest enhancements or report any issues.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
© Commencis, 2024. All rights reserved.