coai/renio
2023-09-05 19:42:34 +08:00
..
public init react app 2023-09-03 20:33:13 +08:00
src update conversation storage and life cycle protection 2023-09-05 19:42:34 +08:00
.eslintrc.cjs init react app 2023-09-03 20:33:13 +08:00
.gitignore init react app 2023-09-03 20:33:13 +08:00
components.json init react app 2023-09-03 20:33:13 +08:00
index.html init react app 2023-09-03 20:33:13 +08:00
package.json update conversation storage and life cycle protection 2023-09-05 19:42:34 +08:00
pnpm-lock.yaml update conversation storage and life cycle protection 2023-09-05 19:42:34 +08:00
postcss.config.js init react app 2023-09-03 20:33:13 +08:00
qodana.yaml update history and chat storage 2023-09-04 21:21:41 +08:00
README.md init react app 2023-09-03 20:33:13 +08:00
tailwind.config.js init react app 2023-09-03 20:33:13 +08:00
tsconfig.json init react app 2023-09-03 20:33:13 +08:00
tsconfig.node.json init react app 2023-09-03 20:33:13 +08:00
vite.config.ts update markdown render 2023-09-05 11:34:00 +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