Skip to content

Commit 130a6de

Browse files
hassankhanmarionebl
authored andcommitted
docs: fix Husky setup instructions (#428)
Fixes #366
1 parent 80abd11 commit 130a6de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitl
4848
```
4949

5050

51-
To lint commits before they are created you can use the 'commitmsg' hook as described [here](https://github.com/typicode/husky/blob/master/HOOKS.md#hooks)
52-
51+
To lint commits before they are created you can use Husky's 'commit-msg' hook:
5352
```json
5453
{
55-
"scripts": {
56-
"commitmsg": "commitlint -E GIT_PARAMS"
54+
"husky": {
55+
"hooks": {
56+
"commitmsg": "commitlint -E HUSKY_GIT_PARAMS"
57+
}
5758
}
5859
}
5960
```

0 commit comments

Comments
 (0)