@@ -45,7 +45,19 @@ export default [
45
45
HTMLFormElement : "readonly" ,
46
46
Event : "readonly" ,
47
47
setTimeout : "readonly" ,
48
+ clearTimeout : "readonly" ,
49
+ clearInterval : "readonly" ,
48
50
React : "readonly" ,
51
+ global : "readonly" ,
52
+ describe : "readonly" ,
53
+ it : "readonly" ,
54
+ expect : "readonly" ,
55
+ beforeEach : "readonly" ,
56
+ afterEach : "readonly" ,
57
+ beforeAll : "readonly" ,
58
+ afterAll : "readonly" ,
59
+ vi : "readonly" ,
60
+ __dirname : "readonly" ,
49
61
} ,
50
62
} ,
51
63
plugins : {
@@ -62,6 +74,7 @@ export default [
62
74
...react . configs . recommended . rules ,
63
75
...reactHooks . configs . recommended . rules ,
64
76
"no-unused-vars" : "off" , // Turn off base rule
77
+ "no-undef" : "off" , // Turn off base rule - TypeScript handles this better
65
78
"no-console" : "warn" ,
66
79
"prefer-const" : "error" ,
67
80
"no-var" : "error" ,
@@ -90,6 +103,15 @@ export default [
90
103
globals : {
91
104
window : "readonly" ,
92
105
console : "readonly" ,
106
+ document : "readonly" ,
107
+ HTMLInputElement : "readonly" ,
108
+ HTMLFormElement : "readonly" ,
109
+ Event : "readonly" ,
110
+ setTimeout : "readonly" ,
111
+ clearTimeout : "readonly" ,
112
+ clearInterval : "readonly" ,
113
+ React : "readonly" ,
114
+ global : "readonly" ,
93
115
describe : "readonly" ,
94
116
it : "readonly" ,
95
117
expect : "readonly" ,
@@ -98,6 +120,7 @@ export default [
98
120
beforeAll : "readonly" ,
99
121
afterAll : "readonly" ,
100
122
vi : "readonly" ,
123
+ __dirname : "readonly" ,
101
124
} ,
102
125
} ,
103
126
plugins : {
@@ -114,6 +137,7 @@ export default [
114
137
...react . configs . recommended . rules ,
115
138
...reactHooks . configs . recommended . rules ,
116
139
"no-unused-vars" : "off" , // Turn off base rule
140
+ "no-undef" : "off" , // Turn off base rule - TypeScript handles this better
117
141
"no-console" : "warn" ,
118
142
"prefer-const" : "error" ,
119
143
"no-var" : "error" ,
0 commit comments