|
|
há 1 semana atrás | |
|---|---|---|
| .. | ||
| HIS-患者列表功能图标 | há 4 semanas atrás | |
| docs | há 5 meses atrás | |
| public | há 6 meses atrás | |
| src | há 1 semana atrás | |
| .env.development | há 2 meses atrás | |
| .env.production | há 3 meses atrás | |
| .gitignore | há 6 meses atrás | |
| Caddyfile | há 2 meses atrás | |
| DEPLOYMENT_CHECKLIST.md | há 2 meses atrás | |
| DEPLOYMENT_GUIDE.md | há 2 meses atrás | |
| HIS-患者列表功能图标.zip | há 4 semanas atrás | |
| NGINX_TROUBLESHOOTING.md | há 2 meses atrás | |
| README.md | há 6 meses atrás | |
| dev.err | há 2 meses atrás | |
| dist.rar | há 1 semana atrás | |
| esbuild_err.txt | há 1 mês atrás | |
| eslint.config.js | há 6 meses atrás | |
| index.html | há 6 meses atrás | |
| nginx-simple.conf | há 2 meses atrás | |
| nginx.conf | há 2 semanas atrás | |
| package-lock.json | há 4 meses atrás | |
| package.json | há 4 meses atrás | |
| project.config.json | há 6 meses atrás | |
| proxy-server.js | há 2 meses atrás | |
| serve.js | há 6 meses atrás | |
| server.js | há 2 meses atrás | |
| tsc_check.txt | há 1 mês atrás | |
| tsc_out.txt | há 3 meses atrás | |
| tsconfig.app.json | há 6 meses atrás | |
| tsconfig.json | há 6 meses atrás | |
| tsconfig.node.json | há 6 meses atrás | |
| vite.config.ts | há 2 semanas atrás | |
| 启动开发服务器.bat | há 6 meses atrás | |
| 启动开发服务器.ps1 | há 6 meses atrás | |
| 登录页面说明.md | há 6 meses atrás | |
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])