Skip to content

Commit fad8ddc

Browse files
docs: add x permiss. to file, otherwise it will not run (#3186)
1 parent d88d372 commit fad8ddc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: docs/guides-local-setup.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,27 @@ npm install husky --save-dev
3131
# or
3232
yarn add husky --dev
3333

34-
# Active hooks
34+
# Activate hooks
3535
npx husky install
3636
# or
3737
yarn husky install
38+
```
39+
40+
### Add hook
3841

39-
# Add hook
42+
```sh
4043
cat <<EEE > .husky/commit-msg
4144
#!/bin/sh
4245
. "\$(dirname "\$0")/_/husky.sh"
4346
4447
npx --no -- commitlint --edit "\${1}"
4548
EEE
49+
```
50+
51+
Make hook executable
4652

53+
```sh
54+
chmod a+x .husky/commit-msg
4755
```
4856

4957
**Please note that currently @commitlint/cli doesn't support yarn v2 Plug'n'Play (using yarn v2 with `nodeLinker: node-modules` in your .yarnrc.yml file may work sometimes)**\

0 commit comments

Comments
 (0)