fix(docs): precommit.md pnpm husky init (#16290)
fix(docs): precommit.md pnpm husky iniy - changed according to official docs https://typicode.github.io/husky/get-started.html#husky-init-recommended
This commit is contained in:
1 parent
8038f6744d
commit
9c70bc13b2
1 file changed
+1
-1
@@ -89,7 +89,7 @@ node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prett
|
||||
<!--pnpm-->
|
||||
|
||||
```bash
|
||||
pnpm exec husky-init
|
||||
pnpm exec husky init
|
||||
pnpm add --save-dev git-format-staged
|
||||
node --eval "fs.writeFileSync('.husky/pre-commit', 'git-format-staged -f \'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"\' .\n')"
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user