Skip to content

Commit

Permalink
docs: improve husky configuration details in README.md [#1]
Browse files Browse the repository at this point in the history
  • Loading branch information
d3p1 committed Mar 19, 2024
1 parent 5df8672 commit 319c9ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ npx husky install
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'
```

> **Note**
>
> Starting from `husky@v9` instead of `npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'` use `echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg`
And you are ready to go! From now on, all messages from your commits will be validated to ensure they adhere to the format:

```
Expand Down

0 comments on commit 319c9ee

Please sign in to comment.