|
před 11 měsíci | |
---|---|---|
.. | ||
public | před 1 rokem | |
src | před 11 měsíci | |
.dockerignore | před 1 rokem | |
.eslintrc.cjs | před 1 rokem | |
.gitignore | před 11 měsíci | |
README.md | před 1 rokem | |
index.html | před 1 rokem | |
package-lock.json | před 11 měsíci | |
package.json | před 11 měsíci | |
tsconfig.json | před 1 rokem | |
tsconfig.node.json | před 1 rokem | |
vite.config.ts | před 1 rokem |
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