喵著前端
Go to file
2024-04-28 11:04:03 +08:00
public 调整素材位置 2024-04-08 15:57:54 +08:00
src 路由补充 2024-04-28 11:04:03 +08:00
.eslintrc.cjs 完善功能 2024-03-20 18:30:39 +08:00
.gitignore fc 2024-03-11 19:13:42 +08:00
index.html 增加字体,对接接口 2024-03-22 21:22:12 +08:00
package-lock.json 处理问题 2024-04-12 14:12:38 +08:00
package.json 处理问题 2024-04-12 14:12:38 +08:00
README.md fc 2024-03-11 19:13:42 +08:00
tsconfig.json fc 2024-03-11 19:13:42 +08:00
tsconfig.node.json fc 2024-03-11 19:13:42 +08:00
vite.config.ts 充值 2024-04-01 20:39:22 +08:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

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:
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 and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list