Skip to content

Commit 493129b

Browse files
authored
docs: changed husky install to husky init for v9 (#4491)
1 parent 74af71c commit 493129b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/guides/local-setup.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ You can find complete setup instructions on the [official documentation](https:/
3131
```sh
3232
npm install --save-dev husky
3333

34+
# husky@v9
35+
npx husky init
36+
# husky@v8 or lower
3437
npx husky install
3538

3639
# Add commit message linting to commit-msg hook
@@ -51,6 +54,9 @@ echo "npm run commitlint \${1}" > .husky/commit-msg
5154
```sh
5255
yarn add --dev husky
5356
57+
# husky@v9
58+
yarn husky init
59+
# husky@v8 or lower
5460
yarn husky install
5561
5662
# Add commit message linting to commit-msg hook
@@ -74,6 +80,9 @@ echo "yarn commitlint \${1}" > .husky/commit-msg
7480
```sh
7581
pnpm add --save-dev husky
7682
83+
# husky@v9
84+
pnpm husky init
85+
# husky@v8 or lower
7786
pnpm husky install
7887
7988
# Add commit message linting to commit-msg hook
@@ -94,6 +103,9 @@ echo "pnpm commitlint \${1}" > .husky/commit-msg
94103
```sh
95104
deno add --dev husky
96105
106+
# husky@v9
107+
deno task --eval husky init
108+
# husky@v8 or lower
97109
deno task --eval husky install
98110
99111
# Add commit message linting to commit-msg hook

0 commit comments

Comments
 (0)