The purpose of the commitlint is linting of a commit message to conform the following format:
type(scope?): subject-
Add workspace reference to
@muravjev/configs-commitlintand its peer dependencies:pnpm add -w @muravjev/configs-commitlint @commitlint/cli
-
Add commitlint configuration file:
// .commitlintrc.js module.exports = require('@muravjev/configs-commitlint');
-
Add commitlint scripts:
- Setup ➡ husky to schedule
commitlintexecution on commit.
- Automatic validation of commit message with
commitlinton commit.
In case of invalid message, commit will be rejected.
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!