Aneurin Barker Snook 627372ca38 web npm audit fix 11 月之前
..
public 85c9a16609 replace favicon, cleanup web 1 年之前
src 2fe6c8ef85 add remote config support 11 月之前
.dockerignore 1f43b1c782 create docker sample environment 1 年之前
.eslintrc.cjs 9749e2bd41 configure eslint, @ path alias 1 年之前
.gitignore 2fe6c8ef85 add remote config support 11 月之前
README.md d4bd353406 npm create vite@latest web -- --template react-ts 1 年之前
index.html 85c9a16609 replace favicon, cleanup web 1 年之前
package-lock.json 627372ca38 web npm audit fix 11 月之前
package.json 2fe6c8ef85 add remote config support 11 月之前
tsconfig.json 9749e2bd41 configure eslint, @ path alias 1 年之前
tsconfig.node.json d4bd353406 npm create vite@latest web -- --template react-ts 1 年之前
vite.config.ts 9749e2bd41 configure eslint, @ path alias 1 年之前

README.md

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