Shared commitlint config to enforce a good commit message
npm install commitlint-config-non-conventional> Shared [commitlint] config to enforce a good commit message
This config disllows the usage of [conventinal style commits][conventionalcommits]. Sometimes all you need is just a proper commit messages with rules enforced.



!Node
A commit message or commit title should
- not be empty
- be sentence cased
- contain atleast 10 characters
- not exceed 50 characters
- not end with full stop
If the commit message has a body and footer. They should have 2 blank leading lines and should not exceed 72 characters. The description(body) should be sentence cased.
``bash`
npm i -D @commitlint/cli commitlint-config-non-conventional
`js
// commitlint.config.js
module.exports = {
extends: 'non-conventional',
};
`
`bashInstall husky
npm i -D husky
Checkout the [husky documentation][install-husky] on how to automatically install git hooks post installation.
[commitlint]: https://commitlint.js.org
[conventionalcommits]: https://www.conventionalcommits.org/
[install-husky]: https://typicode.github.io/husky/#/?id=manual