|
|
il y a 1 an | |
|---|---|---|
| .. | ||
| public | il y a 1 an | |
| src | il y a 1 an | |
| .dockerignore | il y a 1 an | |
| .eslintrc.cjs | il y a 1 an | |
| .gitignore | il y a 1 an | |
| README.md | il y a 1 an | |
| index.html | il y a 1 an | |
| package-lock.json | il y a 1 an | |
| package.json | il y a 1 an | |
| tsconfig.json | il y a 1 an | |
| tsconfig.node.json | il y a 1 an | |
| vite.config.ts | il y a 1 an | |
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:
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