From b4ec8c5909583b99a189f492e22ee1de67b11fe4 Mon Sep 17 00:00:00 2001 From: Helder Burato Berto Date: Mon, 18 May 2020 17:00:01 -0300 Subject: [PATCH] docs(readme): add install husky example --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cabf4cd36..669189923a 100644 --- a/README.md +++ b/README.md @@ -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 {