This template provides a minimal setup to get React working in Vite with HMR and oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
This project uses oxlint for fast and efficient TypeScript/React linting. oxlint provides excellent performance and catches common issues in React applications.
The linting configuration is defined in .oxlintrc.json and includes:
- React plugin for React-specific rules
- Import plugin for import/export validation
- TypeScript support out of the box
To run the linter:
npm run lintFor more advanced configuration options, refer to the oxlint documentation.