Skip to content

Commit 5bb6907

Browse files
authored
docs(readme): add install husky example (#1699)
1 parent 0f0f95a commit 5bb6907

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ npm install --save-dev @commitlint/config-conventional @commitlint/cli
9393
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
9494
```
9595

96-
To lint commits before they are created you can use Husky's 'commit-msg' hook:
96+
To lint commits before they are created you can use Husky's 'commit-msg' hook.
97+
98+
Install in your project `npm install husky --save-dev` or `yarn add -D husky`.
99+
100+
After that, you can create a `.huskyrc` file or add to your `package.json` the following code:
97101

98102
```json
99103
{

0 commit comments

Comments
 (0)