If you are developing a production application, we recommend using TypeScript and enable type-aware lint rules. Check out the TS template to integrate TypeScript and typescript-eslint in your project.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.