Skip to content

Commit

Permalink
feat:高版本的React时,自动导入React和推测react版本
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyangfifa committed Jun 24, 2024
1 parent 10297df commit d884154
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
Expand All @@ -15,6 +16,11 @@
"eol-last": "error",
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
Expand Down

0 comments on commit d884154

Please sign in to comment.