Shared commitlint config to enforce a good non conventional commit message
This config disllows the usage of conventinal style commits. Sometimes all you need is just a proper commit messages with some rules enforced.
npm i -D @commitlint/cli commitlint-config-non-conventional// commitlint.config.js module.exports = { extends: 'non-conventional', };# Install husky npm i -D husky # Activate husky hooks npx husky install # Add commit-msg hook npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'Checkout the husky documentation on how to automatically install git hooks post installation.