Skip to content

Commit 787df39

Browse files
authored
Update README.md (#2542)
Update Husky way to add the enable the git message commit lint hook, check more [here](https://typicode.github.io/husky/#/?id=automatic-recommended).
1 parent d3ccf8a commit 787df39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ npx husky install
107107
yarn husky install
108108

109109
# Add hook
110-
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1'
111-
# or
112-
yarn husky add .husky/commit-msg 'yarn commitlint --edit $1'
110+
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
113111
```
114112

115113
**Detailed Setup instructions**

0 commit comments

Comments
 (0)