3.0.0 • Published 4 days ago
@untile/commitlint-config v3.0.0
Requirements
- Node.js >= 20
Installation
With npm
:
npm install @commitlint/cli @untile/commitlint-config --save-dev
Or using yarn
:
yarn add @commitlint/cli @untile/commitlint-config -D
Setup
Create an .commitlintrc.cjs
file with the following:
module.exports = {
extends: ['@untile/commitlint-config']
};
Rules
- Commit header should start to: Add|Bump|Disable|Enable|Fix|Improve|Migrate|Move|Release|Remove|Replace|Revert|Update.
- Commit header must not be longer than 52 characters.
- Commit header must have more than 1 word.
- Commit body should be in sentence-case.
NOTE Follow the commitlint.js.org guide to see how to finish the configuration, using for example husky.