Using Husky Pre-commit git hook with prettier
Husky allows scripts to run at various git lifecycle events. Here, we want to use the Husky pre-commit hook to run prettier to automatically format the files in the repository on commit.
project setup on gitlab: https://gitlab.com/test-projects47/hu...
cherylm.hashnode.dev2 min read