open project and run npx husky-init. this will add a script called prepare.
(this show be run only once. running it again will overwrite previous hooks
(if exists))
run npm run prepare
install pretty-quick and prettier as dev-dependencies:
npm install --save-dev pretty-quick prettier
add a .prettierrc file with relevant configs. skip this setp if
.prettierrc already exists