@@ -15,13 +15,13 @@ import { config as prettierConfig } from "./prettier.mjs";
15
15
export const config = [
16
16
{
17
17
languageOptions : {
18
- sourceType : "module" ,
19
18
globals : {
20
19
...globals . browser ,
21
20
...globals . node ,
22
- ...globals . jest ,
23
21
BUILD_ID : true ,
24
22
} ,
23
+ ecmaVersion : "latest" ,
24
+ sourceType : "module" ,
25
25
} ,
26
26
plugins : {
27
27
import : pluginImport ,
@@ -34,6 +34,7 @@ export const config = [
34
34
parserOptions : {
35
35
ecmaFeatures : {
36
36
globalReturn : false ,
37
+ jsx : true ,
37
38
} ,
38
39
requireConfigFile : false ,
39
40
babelOptions : babelConfig . env . development ,
@@ -42,6 +43,12 @@ export const config = [
42
43
plugins : {
43
44
react : pluginReact ,
44
45
} ,
46
+ settings : {
47
+ react : {
48
+ pragma : "React" ,
49
+ version : "18.3.1" ,
50
+ } ,
51
+ } ,
45
52
rules : {
46
53
"no-debugger" : "error" ,
47
54
"no-undef" : "error" ,
@@ -52,6 +59,7 @@ export const config = [
52
59
varsIgnorePattern : "^_" ,
53
60
argsIgnorePattern : "^_" ,
54
61
caughtErrorsIgnorePattern : "^_" ,
62
+ reportUsedIgnorePattern : true ,
55
63
ignoreRestSiblings : true ,
56
64
} ,
57
65
] ,
@@ -89,30 +97,17 @@ export const config = [
89
97
distinctGroup : false ,
90
98
} ,
91
99
] ,
100
+ "react/jsx-uses-react" : "error" ,
101
+ "react/jsx-uses-vars" : "error" ,
92
102
} ,
93
103
} ,
94
104
{
95
- files : [ "**/*.{jsx,tsx} " ] ,
105
+ files : [ "**/*.test.*" , "**/__tests__/*" , "**/setupTests.* "] ,
96
106
languageOptions : {
97
- parserOptions : {
98
- ecmaFeatures : {
99
- jsx : true ,
100
- } ,
101
- } ,
102
- } ,
103
- settings : {
104
- react : {
105
- pragma : "React" ,
106
- version : "18.3.1" ,
107
+ globals : {
108
+ ...globals . jest ,
107
109
} ,
108
110
} ,
109
- rules : {
110
- "react/jsx-uses-react" : "error" ,
111
- "react/jsx-uses-vars" : "error" ,
112
- } ,
113
- } ,
114
- {
115
- files : [ "**/*.test.*" , "**/__tests__/*" ] ,
116
111
settings : {
117
112
jest : {
118
113
version : "29.7.0" ,
0 commit comments