eslint-config-seekingalpha-react 5.36.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -67
- package/README.md +1 -2
- package/index.js +0 -3
- package/package.json +1 -3
- package/rules/eslint-plugin-flowtype/index.js +0 -230
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.0.0 - 2022-11-17
|
|
4
|
+
- [deps] remove `eslint-plugin-flowtype`
|
|
5
|
+
- [breaking] drop `Flow` rules
|
|
6
|
+
|
|
3
7
|
## 5.36.0 - 2022-11-06
|
|
4
8
|
- [deps] upgrade `eslint` to version `8.27.0`
|
|
5
9
|
|
|
@@ -166,7 +170,7 @@
|
|
|
166
170
|
|
|
167
171
|
## 4.82.0 - 2021-10-10
|
|
168
172
|
- [deps] upgrade `eslint-plugin-jest` to version `24.6.0`
|
|
169
|
-
|
|
173
|
+
|
|
170
174
|
## 4.81.0 - 2021-10-03
|
|
171
175
|
- [deps] upgrade `eslint-plugin-jest` to version `24.5.2`
|
|
172
176
|
|
|
@@ -208,10 +212,10 @@
|
|
|
208
212
|
## 4.73.0 - 2021-08-01
|
|
209
213
|
- [deps] upgrade `eslint` to version `7.32.0`
|
|
210
214
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.8.2`
|
|
211
|
-
|
|
215
|
+
|
|
212
216
|
## 4.72.0 - 2021-07-25
|
|
213
217
|
- [deps] disable `react/jsx-handler-names` rule
|
|
214
|
-
|
|
218
|
+
|
|
215
219
|
## 4.71.0 - 2021-07-25
|
|
216
220
|
- [breaking] set `jest/max-nested-describe` rule to `2`
|
|
217
221
|
|
|
@@ -358,26 +362,26 @@
|
|
|
358
362
|
|
|
359
363
|
## 4.32.0 - 2020-12-06
|
|
360
364
|
- [deps] upgrade `eslint` to version `7.15.0`
|
|
361
|
-
|
|
365
|
+
|
|
362
366
|
## 4.31.0 - 2020-11-21
|
|
363
367
|
- [deps] upgrade `eslint` to version `7.14.0`
|
|
364
|
-
|
|
368
|
+
|
|
365
369
|
## 4.30.0 - 2020-11-15
|
|
366
370
|
- [deps] upgrade `eslint-plugin-jest` to version `24.1.3`
|
|
367
|
-
|
|
371
|
+
|
|
368
372
|
## 4.29.0 - 2020-11-08
|
|
369
373
|
- [deps] upgrade `eslint` to version `7.13.0`
|
|
370
|
-
|
|
374
|
+
|
|
371
375
|
## 4.28.0 - 2020-10-27
|
|
372
376
|
- [deps] upgrade `eslint` to version `7.12.1`
|
|
373
377
|
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.4.1`
|
|
374
|
-
|
|
378
|
+
|
|
375
379
|
## 4.27.0 - 2020-10-26
|
|
376
380
|
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.4.0`
|
|
377
|
-
|
|
381
|
+
|
|
378
382
|
## 4.26.0 - 2020-10-25
|
|
379
383
|
- [deps] upgrade `eslint` to version `7.12.0`
|
|
380
|
-
|
|
384
|
+
|
|
381
385
|
## 4.25.0 - 2020-10-21
|
|
382
386
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.5`
|
|
383
387
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.2.0`
|
|
@@ -389,85 +393,85 @@
|
|
|
389
393
|
## 4.23.0 - 2020-10-11
|
|
390
394
|
- [deps] upgrade `eslint` to version `7.11.0`
|
|
391
395
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.4`
|
|
392
|
-
|
|
396
|
+
|
|
393
397
|
## 4.22.0 - 2020-10-07
|
|
394
398
|
- [deps] upgrade `eslint-plugin-jest` to version `24.1.0`
|
|
395
|
-
|
|
399
|
+
|
|
396
400
|
## 4.21.0 - 2020-10-05
|
|
397
401
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.3`
|
|
398
|
-
|
|
402
|
+
|
|
399
403
|
## 4.20.0 - 2020-09-29
|
|
400
404
|
- [deps] upgrade `eslint` to version `7.10.0`
|
|
401
|
-
|
|
405
|
+
|
|
402
406
|
## 4.19.0 - 2020-09-25
|
|
403
407
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.2`
|
|
404
|
-
|
|
408
|
+
|
|
405
409
|
## 4.18.0 - 2020-09-24
|
|
406
410
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.1`
|
|
407
|
-
|
|
411
|
+
|
|
408
412
|
## 4.17.0 - 2020-09-22
|
|
409
413
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.0`
|
|
410
414
|
- [docs] switch to NPM
|
|
411
|
-
|
|
415
|
+
|
|
412
416
|
## 4.16.0 - 2020-09-21
|
|
413
417
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.2`
|
|
414
|
-
|
|
418
|
+
|
|
415
419
|
## 4.15.0 - 2020-09-13
|
|
416
420
|
- [deps] upgrade `eslint` to version `7.9.0`
|
|
417
421
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.1`
|
|
418
422
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.1.2`
|
|
419
|
-
|
|
423
|
+
|
|
420
424
|
## 4.14.0 - 2020-09-06
|
|
421
425
|
- [deps] upgrade `eslint` to version `7.8.1`
|
|
422
426
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.0`
|
|
423
|
-
|
|
427
|
+
|
|
424
428
|
## 4.13.0 - 2020-09-01
|
|
425
429
|
- [deps] upgrade `eslint` to version `7.8.0`
|
|
426
|
-
|
|
430
|
+
|
|
427
431
|
## 4.12.0 - 2020-08-24
|
|
428
432
|
- [deps] upgrade `eslint` to version `7.7.0`
|
|
429
433
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.1.0`
|
|
430
|
-
|
|
434
|
+
|
|
431
435
|
## 4.11.0 - 2020-08-14
|
|
432
436
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.6`
|
|
433
|
-
|
|
437
|
+
|
|
434
438
|
## 4.10.0 - 2020-08-02
|
|
435
439
|
- [deps] upgrade `eslint` to version `7.6.0`
|
|
436
440
|
- [deps] upgrade `eslint-plugin-jest` to version `23.20.0`
|
|
437
|
-
|
|
441
|
+
|
|
438
442
|
## 4.9.0 - 2020-07-29
|
|
439
443
|
- [deps] upgrade `eslint-plugin-jest` to version `23.19.0`
|
|
440
444
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.5`
|
|
441
445
|
- [new] `jest/no-interpolation-in-snapshots` rule error
|
|
442
|
-
|
|
446
|
+
|
|
443
447
|
## 4.8.0 - 2020-07-26
|
|
444
448
|
- [deps] upgrade `eslint-plugin-jest` to version `23.18.2`
|
|
445
|
-
|
|
449
|
+
|
|
446
450
|
## 4.7.0 - 2020-07-19
|
|
447
451
|
- [deps] upgrade `eslint` to version `7.5.0`
|
|
448
|
-
|
|
452
|
+
|
|
449
453
|
## 4.6.0 - 2020-07-15
|
|
450
454
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.8`
|
|
451
|
-
|
|
455
|
+
|
|
452
456
|
## 4.5.0 - 2020-07-12
|
|
453
457
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.7`
|
|
454
|
-
|
|
458
|
+
|
|
455
459
|
## 4.4.0 - 2020-07-08
|
|
456
460
|
- [deps] upgrade `eslint-plugin-jest` to version `23.18.0`
|
|
457
461
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.6`
|
|
458
|
-
|
|
462
|
+
|
|
459
463
|
## 4.3.0 - 2020-07-05
|
|
460
464
|
- [deps] upgrade `eslint` to version `7.4.0`
|
|
461
|
-
|
|
465
|
+
|
|
462
466
|
## 4.2.0 - 2020-07-01
|
|
463
467
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.2.0`
|
|
464
468
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.3`
|
|
465
469
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.5`
|
|
466
|
-
|
|
470
|
+
|
|
467
471
|
## 4.1.0 - 2020-06-28
|
|
468
472
|
- [deps] upgrade `eslint` to version `7.3.1`
|
|
469
473
|
- [deps] upgrade `eslint-plugin-jest` to version `23.17.1`
|
|
470
|
-
|
|
474
|
+
|
|
471
475
|
## 4.0.0 - 2020-06-21
|
|
472
476
|
- [deps] upgrade `eslint` to version `7.3.0`
|
|
473
477
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.1.3`
|
|
@@ -475,11 +479,11 @@
|
|
|
475
479
|
- [deps] upgrade `eslint-plugin-flowtype` to version `6.3.1`
|
|
476
480
|
- [new] `jest/no-conditional-expect` rule error
|
|
477
481
|
- [new] `jsx-a11y/autocomplete-valid` rule error
|
|
478
|
-
|
|
482
|
+
|
|
479
483
|
## 3.32.0 - 2020-05-31
|
|
480
484
|
- [deps] upgrade `eslint-plugin-jest` to version `23.13.2`
|
|
481
485
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.4`
|
|
482
|
-
|
|
486
|
+
|
|
483
487
|
## 3.31.1 - 2020-05-17
|
|
484
488
|
- [patch: loosen rules] disable `jest/no-restricted-matchers`
|
|
485
489
|
|
|
@@ -488,76 +492,76 @@
|
|
|
488
492
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.2`
|
|
489
493
|
- [patch] removed deprecated `jest/no-truthy-falsy`, `jest/prefer-inline-snapshots`, `jest/no-expect-resolves`
|
|
490
494
|
- [new] `jest/no-restricted-matchers` rule error
|
|
491
|
-
|
|
495
|
+
|
|
492
496
|
## 3.30.0 - 2020-05-13
|
|
493
497
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.0`
|
|
494
498
|
- [deps] upgrade `eslint-plugin-jest` to version `23.10.0`
|
|
495
|
-
|
|
499
|
+
|
|
496
500
|
## 3.29.0 - 2020-05-12
|
|
497
501
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.1`
|
|
498
|
-
|
|
502
|
+
|
|
499
503
|
## 3.28.0 - 2020-05-11
|
|
500
504
|
- [deps] upgrade `eslint-plugin-jest` to version `23.10.0`
|
|
501
|
-
|
|
505
|
+
|
|
502
506
|
## 3.27.0 - 2020-03-27
|
|
503
507
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.0`
|
|
504
508
|
- [deps] upgrade `eslint-plugin-jest` to version `23.9.0`
|
|
505
509
|
- [new] `jest/no-deprecated-functions` rule error
|
|
506
|
-
|
|
510
|
+
|
|
507
511
|
## 3.26.0 - 2020-03-27
|
|
508
512
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `3.0.0`
|
|
509
513
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.6.0`
|
|
510
|
-
|
|
514
|
+
|
|
511
515
|
## 3.25.0 - 2020-03-20
|
|
512
516
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.5.1`
|
|
513
|
-
|
|
517
|
+
|
|
514
518
|
## 3.24.1 - 2020-03-08
|
|
515
519
|
- [patch: loosen rules] disable `react/no-adjacent-inline-elements`
|
|
516
|
-
|
|
520
|
+
|
|
517
521
|
## 3.24.0 - 2020-03-08
|
|
518
522
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.2`
|
|
519
523
|
- [deps] upgrade `eslint-plugin-react` to version `7.19.0`
|
|
520
524
|
- [new] `react/no-adjacent-inline-elements` rule error
|
|
521
|
-
|
|
525
|
+
|
|
522
526
|
## 3.23.0 - 2020-03-01
|
|
523
527
|
- [deps] update `babel-eslint` to version `10.1.0`
|
|
524
528
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.1`
|
|
525
529
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.5.0`
|
|
526
|
-
|
|
530
|
+
|
|
527
531
|
## 3.22.0 - 2020-02-23
|
|
528
532
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.3`
|
|
529
533
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.0`
|
|
530
534
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.4.0`
|
|
531
|
-
|
|
535
|
+
|
|
532
536
|
## 3.21.2 - 2020-02-02
|
|
533
537
|
- [patch: loosen rules] disable `react/function-component-definition`
|
|
534
|
-
|
|
538
|
+
|
|
535
539
|
## 3.21.1 - 2020-02-02
|
|
536
540
|
- [patch: loosen rules] disable `react/no-adjacent-inline-elements`
|
|
537
|
-
|
|
541
|
+
|
|
538
542
|
## 3.21.0 - 2020-02-02
|
|
539
543
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.2`
|
|
540
544
|
- [new] `react/jsx-no-script-url` rule error
|
|
541
545
|
- [new] `react/no-adjacent-inline-elements` rule error
|
|
542
546
|
- [new] `react/function-component-definition` rule error
|
|
543
|
-
|
|
547
|
+
|
|
544
548
|
## 3.20.0 - 2020-01-17
|
|
545
549
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.0`
|
|
546
|
-
|
|
550
|
+
|
|
547
551
|
## 3.19.0 - 2020-01-12
|
|
548
552
|
- [deps] upgrade `eslint-plugin-jest` to version `23.6.0`
|
|
549
553
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.6.0`
|
|
550
|
-
|
|
554
|
+
|
|
551
555
|
## 3.18.0 - 2020-01-09
|
|
552
556
|
- [deps] upgrade `eslint-plugin-jest` to version `23.3.0`
|
|
553
557
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.5.3`
|
|
554
|
-
|
|
558
|
+
|
|
555
559
|
## 3.17.0 - 2019-12-31
|
|
556
560
|
- [deps] upgrade `eslint-plugin-jest` to version `23.2.0`
|
|
557
|
-
|
|
561
|
+
|
|
558
562
|
## 3.16.0 - 2019-12-21
|
|
559
563
|
- [deps] upgrade `eslint` to version `6.8.0`
|
|
560
|
-
|
|
564
|
+
|
|
561
565
|
## 3.15.1 - 2019-12-06
|
|
562
566
|
- [patch: loosen rules] disable `react/require-default-props`
|
|
563
567
|
|
|
@@ -565,36 +569,36 @@
|
|
|
565
569
|
- [deps] upgrade `eslint` to version `6.7.2`
|
|
566
570
|
- [deps] upgrade `eslint-plugin-jest` to version `23.1.1`
|
|
567
571
|
- [deps] upgrade `eslint-plugin-react` to version `7.17.0`
|
|
568
|
-
|
|
572
|
+
|
|
569
573
|
## 3.14.0 - 2019-11-27
|
|
570
574
|
- [deps] upgrade `eslint` to version `6.7.1`
|
|
571
575
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.5`
|
|
572
576
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.5.2`
|
|
573
|
-
|
|
577
|
+
|
|
574
578
|
## 3.13.0 - 2019-11-20
|
|
575
579
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.4`
|
|
576
580
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.3.0`
|
|
577
|
-
|
|
581
|
+
|
|
578
582
|
## 3.12.0 - 2019-11-14
|
|
579
583
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.3`
|
|
580
584
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.4.1`
|
|
581
|
-
|
|
585
|
+
|
|
582
586
|
## 3.11.1 - 2019-10-29
|
|
583
587
|
- [patch] remove `jest/no-empty-title` rule which was replaced with `jest/valid-title` rule
|
|
584
|
-
|
|
588
|
+
|
|
585
589
|
## 3.11.0 - 2019-10-29
|
|
586
590
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.2`
|
|
587
|
-
|
|
591
|
+
|
|
588
592
|
## 3.10.0 - 2019-10-27
|
|
589
593
|
- [deps] upgrade `eslint` to version `6.6.0`
|
|
590
594
|
- [deps] upgrade `eslint-plugin-jest` to version `22.21.0`
|
|
591
|
-
|
|
595
|
+
|
|
592
596
|
## 3.9.0 - 2019-10-23
|
|
593
597
|
- [deps] upgrade `eslint-plugin-jest` to version `22.20.0`
|
|
594
598
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.2.0`
|
|
595
599
|
- [new] `jest/valid-title` rule error
|
|
596
600
|
- [patch] `react/sort-comp` updated order
|
|
597
|
-
|
|
601
|
+
|
|
598
602
|
## 3.8.0 - 2019-10-16
|
|
599
603
|
- [deps] upgrade `eslint` to version `6.5.1`
|
|
600
604
|
- [deps] upgrade `eslint-plugin-jest` to version `22.19.0`
|
|
@@ -602,14 +606,14 @@
|
|
|
602
606
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.1.2`
|
|
603
607
|
- [new] `jest/prefer-hooks-on-top` rule error
|
|
604
608
|
- [new] `react/jsx-no-useless-fragment` rule error
|
|
605
|
-
|
|
609
|
+
|
|
606
610
|
## 3.7.0 - 2019-09-15
|
|
607
611
|
- [deps] upgrade `eslint` to version `6.4.0`
|
|
608
|
-
|
|
612
|
+
|
|
609
613
|
## 3.6.0 - 2019-09-10
|
|
610
614
|
- [deps] upgrade `eslint-plugin-jest` to version `22.17.0`
|
|
611
615
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.3.0`
|
|
612
|
-
|
|
616
|
+
|
|
613
617
|
## 3.5.0 - 2019-09-02
|
|
614
618
|
- [deps] upgrade `eslint` to version `6.3.0`
|
|
615
619
|
- [deps] upgrade `eslint-plugin-jest` to version `22.16.0`
|
|
@@ -620,7 +624,7 @@
|
|
|
620
624
|
|
|
621
625
|
## 3.3.0 - 2019-08-25
|
|
622
626
|
- [deps] upgrade `eslint` to version `6.2.2`
|
|
623
|
-
|
|
627
|
+
|
|
624
628
|
## 3.2.0 - 2019-08-22
|
|
625
629
|
- [deps] upgrade `eslint` to version `6.2.1`
|
|
626
630
|
- [deps] upgrade `eslint-plugin-jest` to version `22.15.2`
|
|
@@ -629,7 +633,7 @@
|
|
|
629
633
|
## 3.1.0 - 2019-15-10
|
|
630
634
|
- [deps] upgrade `eslint-plugin-jest` to version `22.15.1`
|
|
631
635
|
- [patch: loosen rules] `react/jsx-no-bind` enable `ignoreDOMComponents` option
|
|
632
|
-
|
|
636
|
+
|
|
633
637
|
## 3.0.1 - 2019-08-10
|
|
634
638
|
- [patch: loosen rules] `flowtype/require-indexer-name` switched to `never` option
|
|
635
639
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
|
|
|
6
6
|
|
|
7
7
|
Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
|
|
8
8
|
|
|
9
|
-
npm install eslint@8.27.0 eslint-plugin-
|
|
9
|
+
npm install eslint@8.27.0 eslint-plugin-jsx-a11y@6.6.1 eslint-plugin-react@7.31.10 eslint-plugin-react-hooks@4.6.0 --save-dev
|
|
10
10
|
|
|
11
11
|
Install SeekingAlpha shareable ESLint:
|
|
12
12
|
|
|
@@ -18,7 +18,6 @@ This shareable config includes all ESLint rules including ECMAScript 6 features,
|
|
|
18
18
|
|
|
19
19
|
* [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)
|
|
20
20
|
* [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y)
|
|
21
|
-
* [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype)
|
|
22
21
|
* [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
|
|
23
22
|
|
|
24
23
|
If you don't need configuration extended with `React` rules, check out our [base config](https://www.npmjs.com/package/eslint-config-seekingalpha-base).
|
package/index.js
CHANGED
|
@@ -11,9 +11,6 @@ module.exports = {
|
|
|
11
11
|
// https://github.com/evcohen/eslint-plugin-jsx-a11y
|
|
12
12
|
'./rules/eslint-plugin-jsx-a11y/index.js',
|
|
13
13
|
|
|
14
|
-
// https://github.com/gajus/eslint-plugin-flowtype
|
|
15
|
-
'./rules/eslint-plugin-flowtype/index.js',
|
|
16
|
-
|
|
17
14
|
// https://reactjs.org/docs/hooks-rules.html
|
|
18
15
|
'./rules/eslint-plugin-react-hooks/index.js',
|
|
19
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seekingalpha-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"eslint": "8.27.0",
|
|
53
|
-
"eslint-plugin-flowtype": "8.0.3",
|
|
54
53
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
55
54
|
"eslint-plugin-react": "7.31.10",
|
|
56
55
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
@@ -58,7 +57,6 @@
|
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"eslint": "8.27.0",
|
|
60
59
|
"eslint-find-rules": "4.1.0",
|
|
61
|
-
"eslint-plugin-flowtype": "8.0.3",
|
|
62
60
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
63
61
|
"eslint-plugin-react": "7.31.10",
|
|
64
62
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
3
|
-
plugins: ['flowtype'],
|
|
4
|
-
|
|
5
|
-
rules: {
|
|
6
|
-
|
|
7
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-array-style-complex-type
|
|
8
|
-
'flowtype/array-style-complex-type': [
|
|
9
|
-
'error',
|
|
10
|
-
'verbose',
|
|
11
|
-
],
|
|
12
|
-
|
|
13
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-array-style-simple-type
|
|
14
|
-
'flowtype/array-style-simple-type': [
|
|
15
|
-
'error',
|
|
16
|
-
'verbose',
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-arrow-parens
|
|
20
|
-
'flowtype/arrow-parens': [
|
|
21
|
-
'error',
|
|
22
|
-
'always',
|
|
23
|
-
],
|
|
24
|
-
|
|
25
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-boolean-style
|
|
26
|
-
'flowtype/boolean-style': [
|
|
27
|
-
'error',
|
|
28
|
-
'boolean',
|
|
29
|
-
],
|
|
30
|
-
|
|
31
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-define-flow-type
|
|
32
|
-
'flowtype/define-flow-type': 'warn',
|
|
33
|
-
|
|
34
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-delimiter-dangle
|
|
35
|
-
'flowtype/delimiter-dangle': [
|
|
36
|
-
'error',
|
|
37
|
-
'always-multiline',
|
|
38
|
-
],
|
|
39
|
-
|
|
40
|
-
// https://github.com/gajus/eslint-plugin-flowtype#enforce-line-break
|
|
41
|
-
'flowtype/enforce-line-break': 'error',
|
|
42
|
-
|
|
43
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-generic-spacing
|
|
44
|
-
'flowtype/generic-spacing': [
|
|
45
|
-
'error',
|
|
46
|
-
'never',
|
|
47
|
-
],
|
|
48
|
-
|
|
49
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-interface-id-match
|
|
50
|
-
'flowtype/interface-id-match': [
|
|
51
|
-
'error',
|
|
52
|
-
'^I([A-Z][a-z0-9]*)+',
|
|
53
|
-
],
|
|
54
|
-
|
|
55
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-newline-after-flow-annotation
|
|
56
|
-
'flowtype/newline-after-flow-annotation': [
|
|
57
|
-
'error',
|
|
58
|
-
'always',
|
|
59
|
-
],
|
|
60
|
-
|
|
61
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-dupe-keys
|
|
62
|
-
'flowtype/no-dupe-keys': 'error',
|
|
63
|
-
|
|
64
|
-
// https://github.com/gajus/eslint-plugin-flowtype#no-duplicate-type-union-intersection-members
|
|
65
|
-
'flowtype/no-duplicate-type-union-intersection-members': 'error',
|
|
66
|
-
|
|
67
|
-
/*
|
|
68
|
-
* https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-existential-type
|
|
69
|
-
* should be disabled to support recompose flow types
|
|
70
|
-
*/
|
|
71
|
-
'flowtype/no-existential-type': 'off',
|
|
72
|
-
|
|
73
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-flow-fix-me-comments
|
|
74
|
-
'flowtype/no-flow-fix-me-comments': 'error',
|
|
75
|
-
|
|
76
|
-
// https://github.com/gajus/eslint-plugin-flowtype#no-internal-flow-type
|
|
77
|
-
'flowtype/no-internal-flow-type': 'error',
|
|
78
|
-
|
|
79
|
-
// https://github.com/gajus/eslint-plugin-flowtype#no-mixed
|
|
80
|
-
'flowtype/no-mixed': 'error',
|
|
81
|
-
|
|
82
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-mutable-array
|
|
83
|
-
'flowtype/no-mutable-array': 'error',
|
|
84
|
-
|
|
85
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-primitive-constructor-types
|
|
86
|
-
'flowtype/no-primitive-constructor-types': 'error',
|
|
87
|
-
|
|
88
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-types-missing-file-annotation
|
|
89
|
-
'flowtype/no-types-missing-file-annotation': 'error',
|
|
90
|
-
|
|
91
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-unused-expressions
|
|
92
|
-
'flowtype/no-unused-expressions': 'error',
|
|
93
|
-
|
|
94
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-weak-types
|
|
95
|
-
'flowtype/no-weak-types': 'off',
|
|
96
|
-
|
|
97
|
-
// https://github.com/gajus/eslint-plugin-flowtype#object-type-curly-spacing
|
|
98
|
-
'flowtype/object-type-curly-spacing': [
|
|
99
|
-
'error',
|
|
100
|
-
'always',
|
|
101
|
-
],
|
|
102
|
-
|
|
103
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter
|
|
104
|
-
'flowtype/object-type-delimiter': [
|
|
105
|
-
'error',
|
|
106
|
-
'comma',
|
|
107
|
-
],
|
|
108
|
-
|
|
109
|
-
// https://github.com/gajus/eslint-plugin-flowtype#quotes
|
|
110
|
-
'flowtype/quotes': [
|
|
111
|
-
'error',
|
|
112
|
-
'single',
|
|
113
|
-
],
|
|
114
|
-
|
|
115
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-compound-type-alias
|
|
116
|
-
'flowtype/require-compound-type-alias': [
|
|
117
|
-
'error',
|
|
118
|
-
'never',
|
|
119
|
-
],
|
|
120
|
-
|
|
121
|
-
/*
|
|
122
|
-
* TODO enable?
|
|
123
|
-
* https://github.com/gajus/eslint-plugin-flowtype#require-exact-type
|
|
124
|
-
*/
|
|
125
|
-
'flowtype/require-exact-type': 'off',
|
|
126
|
-
|
|
127
|
-
// https://github.com/gajus/eslint-plugin-flowtype#require-indexer-name
|
|
128
|
-
'flowtype/require-indexer-name': [
|
|
129
|
-
'error',
|
|
130
|
-
'never',
|
|
131
|
-
],
|
|
132
|
-
|
|
133
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-inexact-type
|
|
134
|
-
'flowtype/require-inexact-type': 'off',
|
|
135
|
-
|
|
136
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-parameter-type
|
|
137
|
-
'flowtype/require-parameter-type': 'error',
|
|
138
|
-
|
|
139
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-readonly-react-props
|
|
140
|
-
'flowtype/require-readonly-react-props': 'error',
|
|
141
|
-
|
|
142
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-return-type
|
|
143
|
-
'flowtype/require-return-type': 'off',
|
|
144
|
-
|
|
145
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-types-at-top
|
|
146
|
-
'flowtype/require-types-at-top': [
|
|
147
|
-
'error',
|
|
148
|
-
'always',
|
|
149
|
-
],
|
|
150
|
-
|
|
151
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-types-at-top
|
|
152
|
-
'flowtype/require-valid-file-annotation': [
|
|
153
|
-
'error',
|
|
154
|
-
'always',
|
|
155
|
-
{
|
|
156
|
-
annotationStyle: 'line',
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
|
|
160
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-require-variable-type
|
|
161
|
-
'flowtype/require-variable-type': 'off',
|
|
162
|
-
|
|
163
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-semi
|
|
164
|
-
'flowtype/semi': [
|
|
165
|
-
'error',
|
|
166
|
-
'always',
|
|
167
|
-
],
|
|
168
|
-
|
|
169
|
-
// https://github.com/gajus/eslint-plugin-flowtype#sort-keys
|
|
170
|
-
'flowtype/sort-keys': 'off',
|
|
171
|
-
|
|
172
|
-
// https://github.com/gajus/eslint-plugin-flowtype#sort-type-union-intersection-members
|
|
173
|
-
'flowtype/sort-type-union-intersection-members': 'off',
|
|
174
|
-
|
|
175
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-after-type-colon
|
|
176
|
-
'flowtype/space-after-type-colon': [
|
|
177
|
-
'error',
|
|
178
|
-
'always',
|
|
179
|
-
],
|
|
180
|
-
|
|
181
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-before-generic-bracket
|
|
182
|
-
'flowtype/space-before-generic-bracket': [
|
|
183
|
-
'error',
|
|
184
|
-
'never',
|
|
185
|
-
],
|
|
186
|
-
|
|
187
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-before-type-colon
|
|
188
|
-
'flowtype/space-before-type-colon': [
|
|
189
|
-
'error',
|
|
190
|
-
'never',
|
|
191
|
-
],
|
|
192
|
-
|
|
193
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-spread-exact-type
|
|
194
|
-
'flowtype/spread-exact-type': 'error',
|
|
195
|
-
|
|
196
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-type-id-match
|
|
197
|
-
'flowtype/type-id-match': [
|
|
198
|
-
'error',
|
|
199
|
-
'^([A-Z][a-z0-9]*)+T$',
|
|
200
|
-
],
|
|
201
|
-
|
|
202
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-type-import-style
|
|
203
|
-
'flowtype/type-import-style': [
|
|
204
|
-
'error',
|
|
205
|
-
'declaration',
|
|
206
|
-
],
|
|
207
|
-
|
|
208
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-union-intersection-spacing
|
|
209
|
-
'flowtype/union-intersection-spacing': [
|
|
210
|
-
'error',
|
|
211
|
-
'always',
|
|
212
|
-
],
|
|
213
|
-
|
|
214
|
-
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-use-flow-type
|
|
215
|
-
'flowtype/use-flow-type': 'warn',
|
|
216
|
-
|
|
217
|
-
// https://github.com/gajus/eslint-plugin-flowtype#use-read-only-spread
|
|
218
|
-
'flowtype/use-read-only-spread': 'error',
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
settings: {
|
|
223
|
-
|
|
224
|
-
flowtype: {
|
|
225
|
-
onlyFilesWithFlowAnnotation: true,
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
};
|