@@ -151,9 +151,9 @@ ruleTester.run('no-unsafe', rule, {
151
151
newMethod : 'componentDidMount' ,
152
152
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
153
153
} ,
154
- line : 2 ,
155
- column : 9 ,
156
- type : 'ClassDeclaration ' ,
154
+ line : 3 ,
155
+ column : 11 ,
156
+ type : 'MethodDefinition ' ,
157
157
} ,
158
158
{
159
159
messageId : 'unsafeMethod' ,
@@ -162,9 +162,9 @@ ruleTester.run('no-unsafe', rule, {
162
162
newMethod : 'getDerivedStateFromProps' ,
163
163
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
164
164
} ,
165
- line : 2 ,
166
- column : 9 ,
167
- type : 'ClassDeclaration ' ,
165
+ line : 4 ,
166
+ column : 11 ,
167
+ type : 'MethodDefinition ' ,
168
168
} ,
169
169
{
170
170
messageId : 'unsafeMethod' ,
@@ -173,9 +173,9 @@ ruleTester.run('no-unsafe', rule, {
173
173
newMethod : 'componentDidUpdate' ,
174
174
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
175
175
} ,
176
- line : 2 ,
177
- column : 9 ,
178
- type : 'ClassDeclaration ' ,
176
+ line : 5 ,
177
+ column : 11 ,
178
+ type : 'MethodDefinition ' ,
179
179
} ,
180
180
] ,
181
181
} ,
@@ -196,9 +196,9 @@ ruleTester.run('no-unsafe', rule, {
196
196
newMethod : 'componentDidMount' ,
197
197
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
198
198
} ,
199
- line : 2 ,
200
- column : 9 ,
201
- type : 'ClassDeclaration ' ,
199
+ line : 3 ,
200
+ column : 11 ,
201
+ type : 'MethodDefinition ' ,
202
202
} ,
203
203
{
204
204
messageId : 'unsafeMethod' ,
@@ -207,9 +207,9 @@ ruleTester.run('no-unsafe', rule, {
207
207
newMethod : 'getDerivedStateFromProps' ,
208
208
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
209
209
} ,
210
- line : 2 ,
211
- column : 9 ,
212
- type : 'ClassDeclaration ' ,
210
+ line : 4 ,
211
+ column : 11 ,
212
+ type : 'MethodDefinition ' ,
213
213
} ,
214
214
{
215
215
messageId : 'unsafeMethod' ,
@@ -218,9 +218,9 @@ ruleTester.run('no-unsafe', rule, {
218
218
newMethod : 'componentDidUpdate' ,
219
219
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
220
220
} ,
221
- line : 2 ,
222
- column : 9 ,
223
- type : 'ClassDeclaration ' ,
221
+ line : 5 ,
222
+ column : 11 ,
223
+ type : 'MethodDefinition ' ,
224
224
} ,
225
225
] ,
226
226
} ,
@@ -243,9 +243,9 @@ ruleTester.run('no-unsafe', rule, {
243
243
newMethod : 'componentDidMount' ,
244
244
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
245
245
} ,
246
- line : 2 ,
247
- column : 38 ,
248
- type : 'ObjectExpression ' ,
246
+ line : 3 ,
247
+ column : 11 ,
248
+ type : 'Property ' ,
249
249
} ,
250
250
{
251
251
messageId : 'unsafeMethod' ,
@@ -254,9 +254,9 @@ ruleTester.run('no-unsafe', rule, {
254
254
newMethod : 'getDerivedStateFromProps' ,
255
255
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
256
256
} ,
257
- line : 2 ,
258
- column : 38 ,
259
- type : 'ObjectExpression ' ,
257
+ line : 4 ,
258
+ column : 11 ,
259
+ type : 'Property ' ,
260
260
} ,
261
261
{
262
262
messageId : 'unsafeMethod' ,
@@ -265,9 +265,9 @@ ruleTester.run('no-unsafe', rule, {
265
265
newMethod : 'componentDidUpdate' ,
266
266
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
267
267
} ,
268
- line : 2 ,
269
- column : 38 ,
270
- type : 'ObjectExpression ' ,
268
+ line : 5 ,
269
+ column : 11 ,
270
+ type : 'Property ' ,
271
271
} ,
272
272
] ,
273
273
} ,
@@ -288,9 +288,9 @@ ruleTester.run('no-unsafe', rule, {
288
288
newMethod : 'componentDidMount' ,
289
289
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
290
290
} ,
291
- line : 2 ,
292
- column : 38 ,
293
- type : 'ObjectExpression ' ,
291
+ line : 3 ,
292
+ column : 11 ,
293
+ type : 'Property ' ,
294
294
} ,
295
295
{
296
296
messageId : 'unsafeMethod' ,
@@ -299,9 +299,9 @@ ruleTester.run('no-unsafe', rule, {
299
299
newMethod : 'getDerivedStateFromProps' ,
300
300
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
301
301
} ,
302
- line : 2 ,
303
- column : 38 ,
304
- type : 'ObjectExpression ' ,
302
+ line : 4 ,
303
+ column : 11 ,
304
+ type : 'Property ' ,
305
305
} ,
306
306
{
307
307
messageId : 'unsafeMethod' ,
@@ -310,9 +310,9 @@ ruleTester.run('no-unsafe', rule, {
310
310
newMethod : 'componentDidUpdate' ,
311
311
details : 'See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.' ,
312
312
} ,
313
- line : 2 ,
314
- column : 38 ,
315
- type : 'ObjectExpression ' ,
313
+ line : 5 ,
314
+ column : 11 ,
315
+ type : 'Property ' ,
316
316
} ,
317
317
] ,
318
318
} ,
0 commit comments