AK-21/Graphite-Industrial-Intelligence
0
1# React + TypeScript + Vite2 3This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.4 5Currently, two official plugins are available:6 7- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)8- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)9 10## React Compiler11 12The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).13 14## Expanding the Oxlint configuration15 16If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:17 18```json19{20 "$schema": "./node_modules/oxlint/configuration_schema.json",21 "plugins": ["react", "typescript", "oxc"],22 "options": {23 "typeAware": true24 },25 "rules": {26 "react/rules-of-hooks": "error",27 "react/only-export-components": ["warn", { "allowConstantExport": true }]28 }29}30```31 32See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.33 