@@ -224,20 +224,32 @@ ruleTester.run('no-deprecated', rule, {
224
224
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
225
225
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
226
226
) ,
227
- type : 'Identifier'
227
+ type : 'Identifier' ,
228
+ line : 3 ,
229
+ column : 11 ,
230
+ endLine : 3 ,
231
+ endColumn : 29
228
232
} ,
229
233
{
230
234
message : errorMessage (
231
235
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
232
236
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
233
237
) ,
234
- type : 'Identifier'
238
+ type : 'Identifier' ,
239
+ line : 4 ,
240
+ column : 11 ,
241
+ endLine : 4 ,
242
+ endColumn : 36
235
243
} ,
236
244
{
237
245
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
238
246
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
239
247
) ,
240
- type : 'Identifier'
248
+ type : 'Identifier' ,
249
+ line : 5 ,
250
+ column : 11 ,
251
+ endLine : 5 ,
252
+ endColumn : 30
241
253
}
242
254
]
243
255
} ,
@@ -257,20 +269,32 @@ ruleTester.run('no-deprecated', rule, {
257
269
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
258
270
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
259
271
) ,
260
- type : 'Identifier'
272
+ type : 'Identifier' ,
273
+ line : 4 ,
274
+ column : 13 ,
275
+ endLine : 4 ,
276
+ endColumn : 31
261
277
} ,
262
278
{
263
279
message : errorMessage (
264
280
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
265
281
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
266
282
) ,
267
- type : 'Identifier'
283
+ type : 'Identifier' ,
284
+ line : 5 ,
285
+ column : 13 ,
286
+ endLine : 5 ,
287
+ endColumn : 38
268
288
} ,
269
289
{
270
290
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
271
291
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
272
292
) ,
273
- type : 'Identifier'
293
+ type : 'Identifier' ,
294
+ line : 6 ,
295
+ column : 13 ,
296
+ endLine : 6 ,
297
+ endColumn : 32
274
298
}
275
299
]
276
300
} ,
@@ -288,20 +312,32 @@ ruleTester.run('no-deprecated', rule, {
288
312
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
289
313
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
290
314
) ,
291
- type : 'Identifier'
315
+ type : 'Identifier' ,
316
+ line : 3 ,
317
+ column : 11 ,
318
+ endLine : 3 ,
319
+ endColumn : 29
292
320
} ,
293
321
{
294
322
message : errorMessage (
295
323
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
296
324
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
297
325
) ,
298
- type : 'Identifier'
326
+ type : 'Identifier' ,
327
+ line : 4 ,
328
+ column : 11 ,
329
+ endLine : 4 ,
330
+ endColumn : 36
299
331
} ,
300
332
{
301
333
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
302
334
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
303
335
) ,
304
- type : 'Identifier'
336
+ type : 'Identifier' ,
337
+ line : 5 ,
338
+ column : 11 ,
339
+ endLine : 5 ,
340
+ endColumn : 30
305
341
}
306
342
]
307
343
} ,
@@ -319,20 +355,32 @@ ruleTester.run('no-deprecated', rule, {
319
355
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
320
356
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
321
357
) ,
322
- type : 'Identifier'
358
+ type : 'Identifier' ,
359
+ line : 3 ,
360
+ column : 11 ,
361
+ endLine : 3 ,
362
+ endColumn : 29
323
363
} ,
324
364
{
325
365
message : errorMessage (
326
366
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
327
367
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
328
368
) ,
329
- type : 'Identifier'
369
+ type : 'Identifier' ,
370
+ line : 4 ,
371
+ column : 11 ,
372
+ endLine : 4 ,
373
+ endColumn : 36
330
374
} ,
331
375
{
332
376
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
333
377
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
334
378
) ,
335
- type : 'Identifier'
379
+ type : 'Identifier' ,
380
+ line : 5 ,
381
+ column : 11 ,
382
+ endLine : 5 ,
383
+ endColumn : 30
336
384
}
337
385
]
338
386
} ,
@@ -350,20 +398,32 @@ ruleTester.run('no-deprecated', rule, {
350
398
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
351
399
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
352
400
) ,
353
- type : 'Identifier'
401
+ type : 'Identifier' ,
402
+ line : 3 ,
403
+ column : 11 ,
404
+ endLine : 3 ,
405
+ endColumn : 29
354
406
} ,
355
407
{
356
408
message : errorMessage (
357
409
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
358
410
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
359
411
) ,
360
- type : 'Identifier'
412
+ type : 'Identifier' ,
413
+ line : 4 ,
414
+ column : 11 ,
415
+ endLine : 4 ,
416
+ endColumn : 36
361
417
} ,
362
418
{
363
419
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
364
420
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
365
421
) ,
366
- type : 'Identifier'
422
+ type : 'Identifier' ,
423
+ line : 5 ,
424
+ column : 11 ,
425
+ endLine : 5 ,
426
+ endColumn : 30
367
427
}
368
428
]
369
429
} ,
@@ -381,25 +441,37 @@ ruleTester.run('no-deprecated', rule, {
381
441
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
382
442
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
383
443
) ,
384
- type : 'Identifier'
444
+ type : 'Identifier' ,
445
+ line : 3 ,
446
+ column : 11 ,
447
+ endLine : 3 ,
448
+ endColumn : 29
385
449
} ,
386
450
{
387
451
message : errorMessage (
388
452
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
389
453
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
390
454
) ,
391
- type : 'Identifier'
455
+ type : 'Identifier' ,
456
+ line : 4 ,
457
+ column : 11 ,
458
+ endLine : 4 ,
459
+ endColumn : 36
392
460
} ,
393
461
{
394
462
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
395
463
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
396
464
) ,
397
- type : 'Identifier'
465
+ type : 'Identifier' ,
466
+ line : 5 ,
467
+ column : 11 ,
468
+ endLine : 5 ,
469
+ endColumn : 30
398
470
}
399
471
]
400
472
} ,
401
473
{
402
- code : `un
474
+ code : `
403
475
class Foo extends React.Component {
404
476
constructor() {}
405
477
componentWillMount() {}
@@ -413,20 +485,32 @@ ruleTester.run('no-deprecated', rule, {
413
485
'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
414
486
'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
415
487
) ,
416
- type : 'Identifier'
488
+ type : 'Identifier' ,
489
+ line : 4 ,
490
+ column : 11 ,
491
+ endLine : 4 ,
492
+ endColumn : 29
417
493
} ,
418
494
{
419
495
message : errorMessage (
420
496
'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
421
497
'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
422
498
) ,
423
- type : 'Identifier'
499
+ type : 'Identifier' ,
500
+ line : 5 ,
501
+ column : 11 ,
502
+ endLine : 5 ,
503
+ endColumn : 36
424
504
} ,
425
505
{
426
506
message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
427
507
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
428
508
) ,
429
- type : 'Identifier'
509
+ type : 'Identifier' ,
510
+ line : 6 ,
511
+ column : 11 ,
512
+ endLine : 6 ,
513
+ endColumn : 30
430
514
}
431
515
]
432
516
}
0 commit comments