Lines the commit message and also runs the code through the linters and does not pass commit if errors are found
npm i @alexlit/config-commitlint -D
// commitlint.config.js
export default {
extends: ['@alexlit/config-commitlint'],
};
# .husky/commit-msg
npx --no -- commitlint --edit "$1"