# react_base **Repository Path**: react_template/react_base ## Basic Information - **Project Name**: react_base - **Description**: react基础库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-21 - **Last Updated**: 2024-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React + TypeScript + Vite This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. ## Git 贡献提交规范 - 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 - `feat` 新增功能 - `fix` 修复缺陷 - `docs` 文档变更 - `style` 代码格式 - `refactor` 代码重构 - `perf` 性能优化 - `test` 添加疏漏测试或已有测试改动 - `build` 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等) - `ci` 修改 CI 配置、脚本 - `revert` 回滚 commit - `chore` 对构建过程或辅助工具和库的更改 (不影响源文件) - `wip` 正在开发中 - `types` 类型定义文件修改 ## Expanding the ESLint configuration If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: - Configure the top-level `parserOptions` property like this: ```js export default { // other rules... parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: ['./tsconfig.json', './tsconfig.node.json'], tsconfigRootDir: __dirname, }, } ``` - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` - Optionally add `plugin:@typescript-eslint/stylistic-type-checked` - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list