node version: 20.11.0 pnpm version: 8.15.0 os: Windows
I was following the instructions in https://prettier.io/docs/en/install.html
- I ran the second command
pnpm exec husky install
and - cmd gives me an ERROR message "install command is deprecated"
Is there a problem with husky? How to setup prettier git hook?
Thanks for help
husky install
is nowhusky init
. And what about adding new precommit hook e.g.pnpm exec husky add .husky/pre-commit "pnpm exec lint-staged"
? From the link you gave it will beecho "pnpm exec lint-staged" > .husky/pre-commit
? This does not make sense. Echo is to printout on command line right? – Tintoretto