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