应用双开h5
Go to file
zhangjianjun 2b534eda80 ud 2026-07-09 16:21:45 +08:00
public init 2026-07-09 16:17:33 +08:00
src init 2026-07-09 16:17:33 +08:00
.dockerignore ud 2026-07-09 16:21:45 +08:00
.env init 2026-07-09 16:17:33 +08:00
.gitignore init 2026-07-09 16:17:33 +08:00
.oxlintrc.json init 2026-07-09 16:17:33 +08:00
Dockerfile ud 2026-07-09 16:21:45 +08:00
README.md init 2026-07-09 16:17:33 +08:00
docker-compose.yml ud 2026-07-09 16:21:45 +08:00
index.html init 2026-07-09 16:17:33 +08:00
nginx.conf ud 2026-07-09 16:21:45 +08:00
package.json init 2026-07-09 16:17:33 +08:00
pnpm-lock.yaml init 2026-07-09 16:17:33 +08:00
tsconfig.app.json init 2026-07-09 16:17:33 +08:00
tsconfig.json init 2026-07-09 16:17:33 +08:00
tsconfig.node.json init 2026-07-09 16:17:33 +08:00
vite.config.ts init 2026-07-09 16:17:33 +08:00

README.md

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:

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.