powersir 8d36246b6f | 1年前 | |
---|---|---|
public | 1年前 | |
src | 1年前 | |
.eslintrc.cjs | 1年前 | |
.gitignore | 1年前 | |
README.md | 1年前 | |
index.html | 1年前 | |
package.json | 1年前 | |
tsconfig.json | 1年前 | |
tsconfig.node.json | 1年前 | |
vite.config.ts | 1年前 |
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
parserOptions
property like this: parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
plugin:@typescript-eslint/recommended
to plugin:@typescript-eslint/recommended-type-checked
or plugin:@typescript-eslint/strict-type-checked
plugin:@typescript-eslint/stylistic-type-checked
plugin:react/recommended
& plugin:react/jsx-runtime
to the extends
list