commitlint checks if your commit messages meet the conventional commit format.
yarn add @commitlint/cli @linters/commitlint-config -DThis shareable config can be configured in the commitlint configuration file:
Create a commitlint.config.js configuration file file with the following contents:
module.exports = {
extends: ['@linters/commitlint-config'],
}