Enable the jsx-runtime plugin for vite's ESLint
This prevents it complaining about a missing React import. Enabling this is recommended by the vite starter itself: > Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
This commit is contained in:
parent
608cb6c85e
commit
29550317f7
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* eslint-env node */
|
||||
module.exports = {
|
||||
extends: ["./eslintrc-react.js"],
|
||||
extends: ["./eslintrc-react.js", "plugin:react/jsx-runtime"],
|
||||
ignorePatterns: [".eslintrc.cjs", "vite.config.ts", "dist"],
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue