|
All checks were successful
ci / cli-build (amd64, linux) (push) Successful in 1m43s
ci / cli-build (amd64, windows) (push) Successful in 1m44s
ci / cli-build (arm64, linux) (push) Successful in 1m17s
ci / cli-build (arm64, windows) (push) Successful in 1m17s
ci / build-2 (push) Successful in 2m19s
ci / ingester-docker (push) Successful in 0s
ci / build (push) Successful in 4m42s
ci / frontend-docker (push) Successful in 0s
ci / build-1 (push) Successful in 5m34s
ci / api-docker (push) Successful in 0s
ci / build-3 (push) Has been skipped
ci / chart (push) Successful in 0s
|
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| .oxlintrc.json | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
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 Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
See the Oxlint rules documentation for the full list of rules and categories.