3.1.1 • Published 9 months ago
@untile/commitlint-config v3.1.1
Requirements
- Node.js >= 20
Installation
With npm:
npm install @commitlint/cli @untile/commitlint-config --save-devOr using yarn:
yarn add @commitlint/cli @untile/commitlint-config -DSetup
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.