0.0.1 • Published 1 year ago
@flixlix/config-commitlint v0.0.1
Shared commitlint configuration
The purpose of the commitlint is linting of a commit message to conform the following format:
type(scope?): subjectContents
Setup
Add workspace reference to
@flixlix/config-commitlintand its peer dependencies:pnpm add -w @flixlix/config-commitlint @commitlint/cliAdd commitlint configuration file:
// .commitlintrc.js module.exports = require('@flixlix/config-commitlint');Add commitlint scripts:
// package.json "scripts": { ... "commitlint": "commitlint" ... }
Automation
- Setup ➡ husky to schedule
commitlintexecution on commit.
Usage
- Automatic validation of commit message with
commitlinton commit.\ In case of invalid message, commit will be rejected.
Donation
If you found this project helpful, consider\ buying me a coffee, donate by paypal or just leave a star⭐\ Thanks for your support, it is much appreciated!