Prettier & Pre-commit hooks
August 1, 2024
Introduction # Prettier is a code formatter for JS projects. There are two variations we need to deal with when configuring prettier Projects with package.json at root level # For these projects we need to run following commands npm install --save-dev --save-exact prettier npx prettier . --write npm install --save-dev husky lint-staged npx husky init This will install all the necessary packages. You need to create few config files using following commands ...