coai/app
2023-09-07 19:11:54 +08:00
..
public v2 moved 2023-09-06 11:21:10 +08:00
src update quota dialog 2023-09-07 19:11:54 +08:00
.eslintrc.cjs v2 moved 2023-09-06 11:21:10 +08:00
.gitignore update app 2023-07-18 15:46:30 +08:00
.prettierrc.json v2 moved 2023-09-06 11:21:10 +08:00
components.json v2 moved 2023-09-06 11:21:10 +08:00
index.html v2 moved 2023-09-06 11:21:10 +08:00
logo.png update v2 docs 2023-09-06 14:14:42 +08:00
package.json update quota dialog 2023-09-07 19:11:54 +08:00
pnpm-lock.yaml update quota dialog 2023-09-07 19:11:54 +08:00
postcss.config.js v2 moved 2023-09-06 11:21:10 +08:00
qodana.yaml v2 moved 2023-09-06 11:21:10 +08:00
README.md v2 moved 2023-09-06 11:21:10 +08:00
tailwind.config.js v2 moved 2023-09-06 11:21:10 +08:00
tsconfig.json v2 moved 2023-09-06 11:21:10 +08:00
tsconfig.node.json v2 moved 2023-09-06 11:21:10 +08:00
vite.config.ts code prettier and compress 2023-09-06 12:22:41 +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:
   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