This template provides a minimal setup to get React working in Vite with HMR, and uses oxlint and oxfmt for linting and formatting.
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
The React Compiler is enabled on this template. See this documentation for more information.
Note: This will impact Vite dev & build performances.
- Lint:
npm run lint(oxlint) - Formatting:
npm run formatto format,npm run format:checkto check without modifying
Configuration is in .oxlintrc.json and .oxfmtrc.json. The pre-commit hook (Husky) runs lint and format check before each commit.