Skip to content

Commit

Permalink
docs(readme): add install husky example (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
helderberto committed May 19, 2020
1 parent 0f0f95a commit 5bb6907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -93,7 +93,11 @@ npm install --save-dev @commitlint/config-conventional @commitlint/cli
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
```

To lint commits before they are created you can use Husky's 'commit-msg' hook:
To lint commits before they are created you can use Husky's 'commit-msg' hook.

Install in your project `npm install husky --save-dev` or `yarn add -D husky`.

After that, you can create a `.huskyrc` file or add to your `package.json` the following code:

```json
{
Expand Down

0 comments on commit 5bb6907

Please sign in to comment.