Skip to content

Commit 7160e0b

Browse files
authored
docs: update husky hook file creation (#3353)
* docs(README.md): update husky hook file creation * docs(docs/guides-local-setup.md): update husky hook file creation
1 parent 5f64c81 commit 7160e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides-local-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ yarn husky install
4040
### Add hook
4141

4242
```sh
43-
cat <<EEE > .husky/commit-msg
43+
echo '
4444
#!/bin/sh
4545
. "\$(dirname "\$0")/_/husky.sh"
4646
47-
npx --no -- commitlint --edit "\${1}"
48-
EEE
47+
npx --no -- commitlint --edit ${1}
48+
' > .husky/commit-msg
4949
```
5050

5151
Make hook executable

0 commit comments

Comments
 (0)