eslint.config.js was written for ESLint 9's flat config but package.json pinned ESLint 8 and the script still passed --ext, so lint had not run in months. Upgrade to ESLint 9 with @eslint/js and globals, keep eslint-plugin-react-hooks on v5 (v7 ships the React Compiler rules, which flag 21 places that would be a refactor, not a lint fix), drop the unused eslint-plugin-react, and tune the rules to the house style: ignored catch bindings, constant exports next to components, node globals for the build scripts, and the entry point exempt from fast-refresh checks. The findings that remained were fixed at the source: two unused Icon destructures, an unused footer argument, two dead state pairs, one useCallback dependency memoised, and six run-once effects marked as such. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.