typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.69k stars 996 forks source link

What replacement `husky install` and `husky uninstall` ? #1415

Open dimaslanjaka opened 1 month ago

dimaslanjaka commented 1 month ago

Troubleshoot

If you're migrating from husky 4, see: https://typicode.github.io/husky/migrate-from-v4.html

Context

after updating husky to latest today, my postinstall script showing deprecated

image

because of no site search on https://typicode.github.io/husky/ and no document for replacement of this issue in https://typicode.github.io/husky/migrate-from-v4.html i write this.

SOLVED:

i just solved husky install replaced with husky init. But how uninstall replacement?

Alec-Gillis commented 1 week ago

I agree that the documentation is not clear on the uninstall replacement. For now I am using git config --unset core.hooksPath inside my project directory, which is exactly what the v8 uninstall method was doing. https://github.com/typicode/husky/blob/3c0e08d3ca4d01d04ebb92089e68c47e131ab6be/src/index.ts#L92