React Hero: Setup ESlint for TypeScript + React application
If you’re working on a Typescript + React project, setting up ESLint + Prettier can help you catch errors early and enforce coding standards across your codebase. In this post, we’ll go through the steps of setting up ESLint + Prettier for a Typescript + React application
In case you’re not aware, my React Hero series will guide you step-by-step through the following topics, helping you become familiar with React:
- Setup a new React application with Vite + TypeScript
- Setup React application with a design system — Material UI
- Setup Jest + React Testing Library
- Setup ESlint + Prettier in React
- React Router
- React Form Handling + Validation
- Setup Redux Tool Kits & RTK Query
- Build + Deploy your React application to your own server
- Setup CI/CD pipeline for React app using GitlabCI
- And more…
Okay, let’s finish ESLint + Prettier setup now
Install ESLint
Install ESLint using Yarn by running the following command:
yarn add eslint --dev