commit | 62240ab107d716e8061adeaf29a9e356288d6cb4 | [log] [tgz] |
---|---|---|
author | 22301014 <22301014@bjtu.edu.cn> | Sat Jun 07 09:28:16 2025 +0800 |
committer | 22301014 <22301014@bjtu.edu.cn> | Sat Jun 07 09:36:09 2025 +0800 |
tree | 8b184f4f517618c8a9cf95e486771e50fdc59b61 | |
parent | f7ff788c39d558bdc054ec8a20929c4e2536db52 [diff] |
完善验证页面和后端接口的链接 > 1. 配置了开发环境的端口转发 -> localhost:8080\ > 2. 完成了注册,登录,忘记密码页的功能 > 3. 为项目配置了vitest测试框架 > 4. 对这三个页面进行了测试 > 重写了/test/setup.ts Change-Id: I46c600ce06d698dae6953b2e1e3ff4a98b0f3de4
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config({ extends: [ // 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, ], languageOptions: { // other options... parserOptions: { project: ['./tsconfig.node.json', './tsconfig.app.json'], tsconfigRootDir: import.meta.dirname, }, }, })
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 tseslint.config({ plugins: { // Add the react-x and react-dom plugins 'react-x': reactX, 'react-dom': reactDom, }, rules: { // other rules... // Enable its recommended typescript rules ...reactX.configs['recommended-typescript'].rules, ...reactDom.configs.recommended.rules, }, })