Skip to content

Instantly share code, notes, and snippets.

View shahsagarm's full-sized avatar
🏠
Working from home

Sagar Shah shahsagarm

🏠
Working from home
View GitHub Profile

Configure prettier, eslint, husky (pre commit hook), lint-staged in react + typescript project

Steps to configure prettier, eslint, husky (pre commit hook), lint-staged in react + typescript project created using create-react-app. This is opinionated configuration with airbnb's style guide as the base style guide.

Step 1 :: Setup prettier

1.1) Install prettier as dev dependency.

npm install --save-dev --save-exact prettier