Skip to content

Instantly share code, notes, and snippets.

@thehereward
Created February 5, 2022 14:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehereward/144c15fa083141512b33f18ef12fea04 to your computer and use it in GitHub Desktop.
Save thehereward/144c15fa083141512b33f18ef12fea04 to your computer and use it in GitHub Desktop.
Add pretty-quick and husky with npm
npm install --save-dev prettier pretty-quick husky
npm set-script prepare "husky install" && npm run prepare
npx husky add .husky/pre-commit "npx pretty-quick --staged"
git add . && git commit -m "add pretty-quick and husky"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment