@@ -91,7 +91,7 @@ ruleTester.run('no-deprecated', rule, {
91
91
componentWillUpdate() {}
92
92
}
93
93
` ,
94
- settings : { react : { version : '16.2 .0' } }
94
+ settings : { react : { version : '16.998 .0' } }
95
95
}
96
96
] ,
97
97
@@ -219,25 +219,28 @@ ruleTester.run('no-deprecated', rule, {
219
219
errors : [
220
220
{
221
221
message : errorMessage (
222
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
223
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
222
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
223
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
224
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
224
225
) ,
225
226
type : 'Identifier' ,
226
227
line : 3 ,
227
228
column : 11
228
229
} ,
229
230
{
230
231
message : errorMessage (
231
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
232
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
232
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
233
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
234
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
233
235
) ,
234
236
type : 'Identifier' ,
235
237
line : 4 ,
236
238
column : 11
237
239
} ,
238
240
{
239
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
240
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
241
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
242
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
243
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
241
244
) ,
242
245
type : 'Identifier' ,
243
246
line : 5 ,
@@ -258,25 +261,28 @@ ruleTester.run('no-deprecated', rule, {
258
261
errors : [
259
262
{
260
263
message : errorMessage (
261
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
262
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
264
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
265
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
266
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
263
267
) ,
264
268
type : 'Identifier' ,
265
269
line : 4 ,
266
270
column : 13
267
271
} ,
268
272
{
269
273
message : errorMessage (
270
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
271
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
274
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
275
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
276
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
272
277
) ,
273
278
type : 'Identifier' ,
274
279
line : 5 ,
275
280
column : 13
276
281
} ,
277
282
{
278
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
279
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
283
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
284
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
285
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
280
286
) ,
281
287
type : 'Identifier' ,
282
288
line : 6 ,
@@ -295,25 +301,28 @@ ruleTester.run('no-deprecated', rule, {
295
301
errors : [
296
302
{
297
303
message : errorMessage (
298
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
299
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
304
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
305
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
306
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
300
307
) ,
301
308
type : 'Identifier' ,
302
309
line : 3 ,
303
310
column : 11
304
311
} ,
305
312
{
306
313
message : errorMessage (
307
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
308
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
314
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
315
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
316
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
309
317
) ,
310
318
type : 'Identifier' ,
311
319
line : 4 ,
312
320
column : 11
313
321
} ,
314
322
{
315
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
316
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
323
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
324
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
325
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
317
326
) ,
318
327
type : 'Identifier' ,
319
328
line : 5 ,
@@ -332,25 +341,28 @@ ruleTester.run('no-deprecated', rule, {
332
341
errors : [
333
342
{
334
343
message : errorMessage (
335
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
336
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
344
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
345
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
346
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
337
347
) ,
338
348
type : 'Identifier' ,
339
349
line : 3 ,
340
350
column : 11
341
351
} ,
342
352
{
343
353
message : errorMessage (
344
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
345
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
354
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
355
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
356
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
346
357
) ,
347
358
type : 'Identifier' ,
348
359
line : 4 ,
349
360
column : 11
350
361
} ,
351
362
{
352
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
353
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
363
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
364
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
365
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
354
366
) ,
355
367
type : 'Identifier' ,
356
368
line : 5 ,
@@ -369,25 +381,28 @@ ruleTester.run('no-deprecated', rule, {
369
381
errors : [
370
382
{
371
383
message : errorMessage (
372
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
373
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
384
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
385
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
386
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
374
387
) ,
375
388
type : 'Identifier' ,
376
389
line : 3 ,
377
390
column : 11
378
391
} ,
379
392
{
380
393
message : errorMessage (
381
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
382
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
394
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
395
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
396
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
383
397
) ,
384
398
type : 'Identifier' ,
385
399
line : 4 ,
386
400
column : 11
387
401
} ,
388
402
{
389
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
390
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
403
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
404
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
405
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
391
406
) ,
392
407
type : 'Identifier' ,
393
408
line : 5 ,
@@ -406,25 +421,28 @@ ruleTester.run('no-deprecated', rule, {
406
421
errors : [
407
422
{
408
423
message : errorMessage (
409
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
410
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
424
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
425
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
426
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
411
427
) ,
412
428
type : 'Identifier' ,
413
429
line : 3 ,
414
430
column : 11
415
431
} ,
416
432
{
417
433
message : errorMessage (
418
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
419
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
434
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
435
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
436
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
420
437
) ,
421
438
type : 'Identifier' ,
422
439
line : 4 ,
423
440
column : 11
424
441
} ,
425
442
{
426
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
427
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
443
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
444
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
445
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
428
446
) ,
429
447
type : 'Identifier' ,
430
448
line : 5 ,
@@ -444,25 +462,28 @@ ruleTester.run('no-deprecated', rule, {
444
462
errors : [
445
463
{
446
464
message : errorMessage (
447
- 'componentWillMount' , '16.3.0' , 'UNSAFE_componentWillMount' ,
448
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount'
465
+ 'componentWillMount' , '16.999.0' , 'UNSAFE_componentWillMount' ,
466
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. ' +
467
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
449
468
) ,
450
469
type : 'Identifier' ,
451
470
line : 4 ,
452
471
column : 11
453
472
} ,
454
473
{
455
474
message : errorMessage (
456
- 'componentWillReceiveProps' , '16.3.0' , 'UNSAFE_componentWillReceiveProps' ,
457
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops'
475
+ 'componentWillReceiveProps' , '16.999.0' , 'UNSAFE_componentWillReceiveProps' ,
476
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops. ' +
477
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
458
478
) ,
459
479
type : 'Identifier' ,
460
480
line : 5 ,
461
481
column : 11
462
482
} ,
463
483
{
464
- message : errorMessage ( 'componentWillUpdate' , '16.3.0' , 'UNSAFE_componentWillUpdate' ,
465
- 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
484
+ message : errorMessage ( 'componentWillUpdate' , '16.999.0' , 'UNSAFE_componentWillUpdate' ,
485
+ 'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate. ' +
486
+ 'Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components.'
466
487
) ,
467
488
type : 'Identifier' ,
468
489
line : 6 ,
0 commit comments