@dotcom-tool-kit/commitlint
v2.1.0
Published
Tool Kit plugin to run [commitlint](https://commitlint.js.org/)
Downloads
1,914
Readme
@dotcom-tool-kit/commitlint
Tool Kit plugin to run commitlint
Installation & Usage
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/commitlintAnd 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.
Tasks
Commitlint
Lint commit messages.
Task options
| Property | Description | Type |
| :------- | :---------------------------------------------------------------------------------------------------------------------------------------------- | :------- |
| from | The start of the commit range to lint. If neither from or to are specified, Commitlint will lint the commit message currently being edited. | string |
| to | The end of the commit range to lint. | string |
All properties are optional.
