powersir 8d36246b6f | pirms 1 gada | |
---|---|---|
public | pirms 1 gada | |
src | pirms 1 gada | |
.eslintrc.cjs | pirms 1 gada | |
.gitignore | pirms 1 gada | |
README.md | pirms 1 gada | |
index.html | pirms 1 gada | |
package.json | pirms 1 gada | |
tsconfig.json | pirms 1 gada | |
tsconfig.node.json | pirms 1 gada | |
vite.config.ts | pirms 1 gada |
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