File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11import globals from "globals" ;
22import tseslint from "typescript-eslint" ;
3- import reactPlugin from "eslint-plugin-react" ;
4- import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended" ;
3+ import react from "eslint-plugin-react" ;
4+ import prettierRecommended from "eslint-plugin-prettier/recommended" ;
55
66export default tseslint . config (
77 {
88 ignores : [ "dist" ] ,
99 } ,
10- reactPlugin . configs . flat . recommended ,
10+ react . configs . flat . recommended ,
1111 tseslint . configs . recommended ,
1212 {
1313 languageOptions : {
1414 globals : {
1515 ...globals . browser ,
1616 ...globals . es2021 ,
1717 } ,
18- parser : tseslint . parser ,
1918 parserOptions : {
2019 ecmaVersion : "latest" ,
21- sourceType : "module" ,
2220 } ,
2321 } ,
24- plugins : {
25- react : reactPlugin ,
26- "@typescript-eslint" : tseslint . plugin ,
22+ settings : {
23+ react : {
24+ version : "detect" ,
25+ } ,
2726 } ,
2827 rules : {
2928 "react/no-did-update-set-state" : "off" ,
@@ -32,5 +31,5 @@ export default tseslint.config(
3231 "@typescript-eslint/no-explicit-any" : "off" ,
3332 } ,
3433 } ,
35- eslintPluginPrettierRecommended
34+ prettierRecommended
3635) ;
You can’t perform that action at this time.
0 commit comments