Tool Kit plugin to run commitlint
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/commitlint
And add it to your repo's .toolkitrc.yml
:
plugins:
- '@dotcom-tool-kit/commitlint'
By default the plugin will run on the git:commitmsg
command. There are no further configurations in Tool Kit, use one of the config file locations that Commitlint supports.
Lint commit messages.