A plugin to add git hooks to your project via [husky](https://typicode.github.io/husky/#/). These hooks can be configured with different tasks as your project requires.
npm install @dotcom-tool-kit/husky-npmA plugin to add git hooks to your project via husky. These hooks can be configured with different tasks as your project requires.
With Tool Kit already set up, install this plugin as a dev dependency:
``sh`
npm install --save-dev @dotcom-tool-kit/husky-npm
And add it to your repo's .toolkitrc.yml:
`yaml`
plugins:
- '@dotcom-tool-kit/husky-npm'
Install this plugin's hooks:
`sh`
npx dotcom-tool-kit --install
none
| Event | Description | Installed to...| Default tasks |
|-|-|-|-|
| git:precommit | installs git's pre-commit hook | package.json | LintStaged |git:commitmsg` | installs git's commit-msg hook | package.json | none |
|