eslint-config-seekingalpha-react 5.36.0 → 6.1.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 +75 -67
- package/README.md +1 -2
- package/index.js +1 -4
- package/package.json +5 -7
- package/rules/eslint-plugin-flowtype/index.js +0 -230
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.1.0 - 2022-12-08
|
|
4
|
+
- [deps] [deps] upgrade `eslint` to version `8.29.0`
|
|
5
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.31.11`
|
|
6
|
+
|
|
7
|
+
## 6.0.0 - 2022-11-17
|
|
8
|
+
- [deps] remove `eslint-plugin-flowtype`
|
|
9
|
+
- [breaking] drop `Flow` rules
|
|
10
|
+
|
|
3
11
|
## 5.36.0 - 2022-11-06
|
|
4
12
|
- [deps] upgrade `eslint` to version `8.27.0`
|
|
5
13
|
|
|
@@ -166,7 +174,7 @@
|
|
|
166
174
|
|
|
167
175
|
## 4.82.0 - 2021-10-10
|
|
168
176
|
- [deps] upgrade `eslint-plugin-jest` to version `24.6.0`
|
|
169
|
-
|
|
177
|
+
|
|
170
178
|
## 4.81.0 - 2021-10-03
|
|
171
179
|
- [deps] upgrade `eslint-plugin-jest` to version `24.5.2`
|
|
172
180
|
|
|
@@ -208,10 +216,10 @@
|
|
|
208
216
|
## 4.73.0 - 2021-08-01
|
|
209
217
|
- [deps] upgrade `eslint` to version `7.32.0`
|
|
210
218
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.8.2`
|
|
211
|
-
|
|
219
|
+
|
|
212
220
|
## 4.72.0 - 2021-07-25
|
|
213
221
|
- [deps] disable `react/jsx-handler-names` rule
|
|
214
|
-
|
|
222
|
+
|
|
215
223
|
## 4.71.0 - 2021-07-25
|
|
216
224
|
- [breaking] set `jest/max-nested-describe` rule to `2`
|
|
217
225
|
|
|
@@ -358,26 +366,26 @@
|
|
|
358
366
|
|
|
359
367
|
## 4.32.0 - 2020-12-06
|
|
360
368
|
- [deps] upgrade `eslint` to version `7.15.0`
|
|
361
|
-
|
|
369
|
+
|
|
362
370
|
## 4.31.0 - 2020-11-21
|
|
363
371
|
- [deps] upgrade `eslint` to version `7.14.0`
|
|
364
|
-
|
|
372
|
+
|
|
365
373
|
## 4.30.0 - 2020-11-15
|
|
366
374
|
- [deps] upgrade `eslint-plugin-jest` to version `24.1.3`
|
|
367
|
-
|
|
375
|
+
|
|
368
376
|
## 4.29.0 - 2020-11-08
|
|
369
377
|
- [deps] upgrade `eslint` to version `7.13.0`
|
|
370
|
-
|
|
378
|
+
|
|
371
379
|
## 4.28.0 - 2020-10-27
|
|
372
380
|
- [deps] upgrade `eslint` to version `7.12.1`
|
|
373
381
|
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.4.1`
|
|
374
|
-
|
|
382
|
+
|
|
375
383
|
## 4.27.0 - 2020-10-26
|
|
376
384
|
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.4.0`
|
|
377
|
-
|
|
385
|
+
|
|
378
386
|
## 4.26.0 - 2020-10-25
|
|
379
387
|
- [deps] upgrade `eslint` to version `7.12.0`
|
|
380
|
-
|
|
388
|
+
|
|
381
389
|
## 4.25.0 - 2020-10-21
|
|
382
390
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.5`
|
|
383
391
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.2.0`
|
|
@@ -389,85 +397,85 @@
|
|
|
389
397
|
## 4.23.0 - 2020-10-11
|
|
390
398
|
- [deps] upgrade `eslint` to version `7.11.0`
|
|
391
399
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.4`
|
|
392
|
-
|
|
400
|
+
|
|
393
401
|
## 4.22.0 - 2020-10-07
|
|
394
402
|
- [deps] upgrade `eslint-plugin-jest` to version `24.1.0`
|
|
395
|
-
|
|
403
|
+
|
|
396
404
|
## 4.21.0 - 2020-10-05
|
|
397
405
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.3`
|
|
398
|
-
|
|
406
|
+
|
|
399
407
|
## 4.20.0 - 2020-09-29
|
|
400
408
|
- [deps] upgrade `eslint` to version `7.10.0`
|
|
401
|
-
|
|
409
|
+
|
|
402
410
|
## 4.19.0 - 2020-09-25
|
|
403
411
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.2`
|
|
404
|
-
|
|
412
|
+
|
|
405
413
|
## 4.18.0 - 2020-09-24
|
|
406
414
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.1`
|
|
407
|
-
|
|
415
|
+
|
|
408
416
|
## 4.17.0 - 2020-09-22
|
|
409
417
|
- [deps] upgrade `eslint-plugin-react` to version `7.21.0`
|
|
410
418
|
- [docs] switch to NPM
|
|
411
|
-
|
|
419
|
+
|
|
412
420
|
## 4.16.0 - 2020-09-21
|
|
413
421
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.2`
|
|
414
|
-
|
|
422
|
+
|
|
415
423
|
## 4.15.0 - 2020-09-13
|
|
416
424
|
- [deps] upgrade `eslint` to version `7.9.0`
|
|
417
425
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.1`
|
|
418
426
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.1.2`
|
|
419
|
-
|
|
427
|
+
|
|
420
428
|
## 4.14.0 - 2020-09-06
|
|
421
429
|
- [deps] upgrade `eslint` to version `7.8.1`
|
|
422
430
|
- [deps] upgrade `eslint-plugin-jest` to version `24.0.0`
|
|
423
|
-
|
|
431
|
+
|
|
424
432
|
## 4.13.0 - 2020-09-01
|
|
425
433
|
- [deps] upgrade `eslint` to version `7.8.0`
|
|
426
|
-
|
|
434
|
+
|
|
427
435
|
## 4.12.0 - 2020-08-24
|
|
428
436
|
- [deps] upgrade `eslint` to version `7.7.0`
|
|
429
437
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.1.0`
|
|
430
|
-
|
|
438
|
+
|
|
431
439
|
## 4.11.0 - 2020-08-14
|
|
432
440
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.6`
|
|
433
|
-
|
|
441
|
+
|
|
434
442
|
## 4.10.0 - 2020-08-02
|
|
435
443
|
- [deps] upgrade `eslint` to version `7.6.0`
|
|
436
444
|
- [deps] upgrade `eslint-plugin-jest` to version `23.20.0`
|
|
437
|
-
|
|
445
|
+
|
|
438
446
|
## 4.9.0 - 2020-07-29
|
|
439
447
|
- [deps] upgrade `eslint-plugin-jest` to version `23.19.0`
|
|
440
448
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.5`
|
|
441
449
|
- [new] `jest/no-interpolation-in-snapshots` rule error
|
|
442
|
-
|
|
450
|
+
|
|
443
451
|
## 4.8.0 - 2020-07-26
|
|
444
452
|
- [deps] upgrade `eslint-plugin-jest` to version `23.18.2`
|
|
445
|
-
|
|
453
|
+
|
|
446
454
|
## 4.7.0 - 2020-07-19
|
|
447
455
|
- [deps] upgrade `eslint` to version `7.5.0`
|
|
448
|
-
|
|
456
|
+
|
|
449
457
|
## 4.6.0 - 2020-07-15
|
|
450
458
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.8`
|
|
451
|
-
|
|
459
|
+
|
|
452
460
|
## 4.5.0 - 2020-07-12
|
|
453
461
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.7`
|
|
454
|
-
|
|
462
|
+
|
|
455
463
|
## 4.4.0 - 2020-07-08
|
|
456
464
|
- [deps] upgrade `eslint-plugin-jest` to version `23.18.0`
|
|
457
465
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.6`
|
|
458
|
-
|
|
466
|
+
|
|
459
467
|
## 4.3.0 - 2020-07-05
|
|
460
468
|
- [deps] upgrade `eslint` to version `7.4.0`
|
|
461
|
-
|
|
469
|
+
|
|
462
470
|
## 4.2.0 - 2020-07-01
|
|
463
471
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.2.0`
|
|
464
472
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.3`
|
|
465
473
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.5`
|
|
466
|
-
|
|
474
|
+
|
|
467
475
|
## 4.1.0 - 2020-06-28
|
|
468
476
|
- [deps] upgrade `eslint` to version `7.3.1`
|
|
469
477
|
- [deps] upgrade `eslint-plugin-jest` to version `23.17.1`
|
|
470
|
-
|
|
478
|
+
|
|
471
479
|
## 4.0.0 - 2020-06-21
|
|
472
480
|
- [deps] upgrade `eslint` to version `7.3.0`
|
|
473
481
|
- [deps] upgrade `eslint-plugin-flowtype` to version `5.1.3`
|
|
@@ -475,11 +483,11 @@
|
|
|
475
483
|
- [deps] upgrade `eslint-plugin-flowtype` to version `6.3.1`
|
|
476
484
|
- [new] `jest/no-conditional-expect` rule error
|
|
477
485
|
- [new] `jsx-a11y/autocomplete-valid` rule error
|
|
478
|
-
|
|
486
|
+
|
|
479
487
|
## 3.32.0 - 2020-05-31
|
|
480
488
|
- [deps] upgrade `eslint-plugin-jest` to version `23.13.2`
|
|
481
489
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.4`
|
|
482
|
-
|
|
490
|
+
|
|
483
491
|
## 3.31.1 - 2020-05-17
|
|
484
492
|
- [patch: loosen rules] disable `jest/no-restricted-matchers`
|
|
485
493
|
|
|
@@ -488,76 +496,76 @@
|
|
|
488
496
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.2`
|
|
489
497
|
- [patch] removed deprecated `jest/no-truthy-falsy`, `jest/prefer-inline-snapshots`, `jest/no-expect-resolves`
|
|
490
498
|
- [new] `jest/no-restricted-matchers` rule error
|
|
491
|
-
|
|
499
|
+
|
|
492
500
|
## 3.30.0 - 2020-05-13
|
|
493
501
|
- [deps] upgrade `eslint-plugin-react` to version `7.20.0`
|
|
494
502
|
- [deps] upgrade `eslint-plugin-jest` to version `23.10.0`
|
|
495
|
-
|
|
503
|
+
|
|
496
504
|
## 3.29.0 - 2020-05-12
|
|
497
505
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.1`
|
|
498
|
-
|
|
506
|
+
|
|
499
507
|
## 3.28.0 - 2020-05-11
|
|
500
508
|
- [deps] upgrade `eslint-plugin-jest` to version `23.10.0`
|
|
501
|
-
|
|
509
|
+
|
|
502
510
|
## 3.27.0 - 2020-03-27
|
|
503
511
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `4.0.0`
|
|
504
512
|
- [deps] upgrade `eslint-plugin-jest` to version `23.9.0`
|
|
505
513
|
- [new] `jest/no-deprecated-functions` rule error
|
|
506
|
-
|
|
514
|
+
|
|
507
515
|
## 3.26.0 - 2020-03-27
|
|
508
516
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `3.0.0`
|
|
509
517
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.6.0`
|
|
510
|
-
|
|
518
|
+
|
|
511
519
|
## 3.25.0 - 2020-03-20
|
|
512
520
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.5.1`
|
|
513
|
-
|
|
521
|
+
|
|
514
522
|
## 3.24.1 - 2020-03-08
|
|
515
523
|
- [patch: loosen rules] disable `react/no-adjacent-inline-elements`
|
|
516
|
-
|
|
524
|
+
|
|
517
525
|
## 3.24.0 - 2020-03-08
|
|
518
526
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.2`
|
|
519
527
|
- [deps] upgrade `eslint-plugin-react` to version `7.19.0`
|
|
520
528
|
- [new] `react/no-adjacent-inline-elements` rule error
|
|
521
|
-
|
|
529
|
+
|
|
522
530
|
## 3.23.0 - 2020-03-01
|
|
523
531
|
- [deps] update `babel-eslint` to version `10.1.0`
|
|
524
532
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.1`
|
|
525
533
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.5.0`
|
|
526
|
-
|
|
534
|
+
|
|
527
535
|
## 3.22.0 - 2020-02-23
|
|
528
536
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.3`
|
|
529
537
|
- [deps] upgrade `eslint-plugin-jest` to version `23.8.0`
|
|
530
538
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.4.0`
|
|
531
|
-
|
|
539
|
+
|
|
532
540
|
## 3.21.2 - 2020-02-02
|
|
533
541
|
- [patch: loosen rules] disable `react/function-component-definition`
|
|
534
|
-
|
|
542
|
+
|
|
535
543
|
## 3.21.1 - 2020-02-02
|
|
536
544
|
- [patch: loosen rules] disable `react/no-adjacent-inline-elements`
|
|
537
|
-
|
|
545
|
+
|
|
538
546
|
## 3.21.0 - 2020-02-02
|
|
539
547
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.2`
|
|
540
548
|
- [new] `react/jsx-no-script-url` rule error
|
|
541
549
|
- [new] `react/no-adjacent-inline-elements` rule error
|
|
542
550
|
- [new] `react/function-component-definition` rule error
|
|
543
|
-
|
|
551
|
+
|
|
544
552
|
## 3.20.0 - 2020-01-17
|
|
545
553
|
- [deps] upgrade `eslint-plugin-react` to version `7.18.0`
|
|
546
|
-
|
|
554
|
+
|
|
547
555
|
## 3.19.0 - 2020-01-12
|
|
548
556
|
- [deps] upgrade `eslint-plugin-jest` to version `23.6.0`
|
|
549
557
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.6.0`
|
|
550
|
-
|
|
558
|
+
|
|
551
559
|
## 3.18.0 - 2020-01-09
|
|
552
560
|
- [deps] upgrade `eslint-plugin-jest` to version `23.3.0`
|
|
553
561
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.5.3`
|
|
554
|
-
|
|
562
|
+
|
|
555
563
|
## 3.17.0 - 2019-12-31
|
|
556
564
|
- [deps] upgrade `eslint-plugin-jest` to version `23.2.0`
|
|
557
|
-
|
|
565
|
+
|
|
558
566
|
## 3.16.0 - 2019-12-21
|
|
559
567
|
- [deps] upgrade `eslint` to version `6.8.0`
|
|
560
|
-
|
|
568
|
+
|
|
561
569
|
## 3.15.1 - 2019-12-06
|
|
562
570
|
- [patch: loosen rules] disable `react/require-default-props`
|
|
563
571
|
|
|
@@ -565,36 +573,36 @@
|
|
|
565
573
|
- [deps] upgrade `eslint` to version `6.7.2`
|
|
566
574
|
- [deps] upgrade `eslint-plugin-jest` to version `23.1.1`
|
|
567
575
|
- [deps] upgrade `eslint-plugin-react` to version `7.17.0`
|
|
568
|
-
|
|
576
|
+
|
|
569
577
|
## 3.14.0 - 2019-11-27
|
|
570
578
|
- [deps] upgrade `eslint` to version `6.7.1`
|
|
571
579
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.5`
|
|
572
580
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.5.2`
|
|
573
|
-
|
|
581
|
+
|
|
574
582
|
## 3.13.0 - 2019-11-20
|
|
575
583
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.4`
|
|
576
584
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.3.0`
|
|
577
|
-
|
|
585
|
+
|
|
578
586
|
## 3.12.0 - 2019-11-14
|
|
579
587
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.3`
|
|
580
588
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.4.1`
|
|
581
|
-
|
|
589
|
+
|
|
582
590
|
## 3.11.1 - 2019-10-29
|
|
583
591
|
- [patch] remove `jest/no-empty-title` rule which was replaced with `jest/valid-title` rule
|
|
584
|
-
|
|
592
|
+
|
|
585
593
|
## 3.11.0 - 2019-10-29
|
|
586
594
|
- [deps] upgrade `eslint-plugin-jest` to version `23.0.2`
|
|
587
|
-
|
|
595
|
+
|
|
588
596
|
## 3.10.0 - 2019-10-27
|
|
589
597
|
- [deps] upgrade `eslint` to version `6.6.0`
|
|
590
598
|
- [deps] upgrade `eslint-plugin-jest` to version `22.21.0`
|
|
591
|
-
|
|
599
|
+
|
|
592
600
|
## 3.9.0 - 2019-10-23
|
|
593
601
|
- [deps] upgrade `eslint-plugin-jest` to version `22.20.0`
|
|
594
602
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.2.0`
|
|
595
603
|
- [new] `jest/valid-title` rule error
|
|
596
604
|
- [patch] `react/sort-comp` updated order
|
|
597
|
-
|
|
605
|
+
|
|
598
606
|
## 3.8.0 - 2019-10-16
|
|
599
607
|
- [deps] upgrade `eslint` to version `6.5.1`
|
|
600
608
|
- [deps] upgrade `eslint-plugin-jest` to version `22.19.0`
|
|
@@ -602,14 +610,14 @@
|
|
|
602
610
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `2.1.2`
|
|
603
611
|
- [new] `jest/prefer-hooks-on-top` rule error
|
|
604
612
|
- [new] `react/jsx-no-useless-fragment` rule error
|
|
605
|
-
|
|
613
|
+
|
|
606
614
|
## 3.7.0 - 2019-09-15
|
|
607
615
|
- [deps] upgrade `eslint` to version `6.4.0`
|
|
608
|
-
|
|
616
|
+
|
|
609
617
|
## 3.6.0 - 2019-09-10
|
|
610
618
|
- [deps] upgrade `eslint-plugin-jest` to version `22.17.0`
|
|
611
619
|
- [deps] upgrade `eslint-plugin-flowtype` to version `4.3.0`
|
|
612
|
-
|
|
620
|
+
|
|
613
621
|
## 3.5.0 - 2019-09-02
|
|
614
622
|
- [deps] upgrade `eslint` to version `6.3.0`
|
|
615
623
|
- [deps] upgrade `eslint-plugin-jest` to version `22.16.0`
|
|
@@ -620,7 +628,7 @@
|
|
|
620
628
|
|
|
621
629
|
## 3.3.0 - 2019-08-25
|
|
622
630
|
- [deps] upgrade `eslint` to version `6.2.2`
|
|
623
|
-
|
|
631
|
+
|
|
624
632
|
## 3.2.0 - 2019-08-22
|
|
625
633
|
- [deps] upgrade `eslint` to version `6.2.1`
|
|
626
634
|
- [deps] upgrade `eslint-plugin-jest` to version `22.15.2`
|
|
@@ -629,7 +637,7 @@
|
|
|
629
637
|
## 3.1.0 - 2019-15-10
|
|
630
638
|
- [deps] upgrade `eslint-plugin-jest` to version `22.15.1`
|
|
631
639
|
- [patch: loosen rules] `react/jsx-no-bind` enable `ignoreDOMComponents` option
|
|
632
|
-
|
|
640
|
+
|
|
633
641
|
## 3.0.1 - 2019-08-10
|
|
634
642
|
- [patch: loosen rules] `flowtype/require-indexer-name` switched to `never` option
|
|
635
643
|
|
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.
|
|
9
|
+
npm install eslint@8.29.0 eslint-plugin-jsx-a11y@6.6.1 eslint-plugin-react@7.31.11 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,16 +11,13 @@ 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
|
|
|
20
17
|
],
|
|
21
18
|
|
|
22
19
|
parserOptions: {
|
|
23
|
-
ecmaVersion:
|
|
20
|
+
ecmaVersion: 11,
|
|
24
21
|
sourceType: 'module',
|
|
25
22
|
ecmaFeatures: {
|
|
26
23
|
impliedStrict: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seekingalpha-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,18 +49,16 @@
|
|
|
49
49
|
"node": ">= 16"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "8.
|
|
53
|
-
"eslint-plugin-flowtype": "8.0.3",
|
|
52
|
+
"eslint": "8.29.0",
|
|
54
53
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
55
|
-
"eslint-plugin-react": "7.31.
|
|
54
|
+
"eslint-plugin-react": "7.31.11",
|
|
56
55
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.29.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
|
-
"eslint-plugin-react": "7.31.
|
|
61
|
+
"eslint-plugin-react": "7.31.11",
|
|
64
62
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
65
63
|
}
|
|
66
64
|
}
|
|
@@ -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
|
-
};
|