@gooddata/eslint-config 11.19.0-alpha.9 → 11.20.0-alpha.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/PACKAGES_V8.md +1 -2
- package/PACKAGES_V9.md +1 -1
- package/PACKAGES_V9_OXLINT.md +21 -0
- package/README.md +22 -0
- package/dist/base.js +792 -283
- package/dist/base.json +1049 -213
- package/dist/browser-esm.js +794 -285
- package/dist/browser-esm.json +1051 -215
- package/dist/browser.js +792 -283
- package/dist/browser.json +1049 -213
- package/dist/esm-react-cypress.js +715 -187
- package/dist/esm-react-cypress.json +1051 -204
- package/dist/esm-react-vitest-storybook.js +825 -297
- package/dist/esm-react-vitest-storybook.json +1076 -204
- package/dist/esm-react-vitest.js +825 -297
- package/dist/esm-react-vitest.json +1060 -204
- package/dist/esm-react.js +798 -289
- package/dist/esm-react.json +1051 -216
- package/dist/esm-vitest.js +821 -293
- package/dist/esm-vitest.json +1060 -203
- package/dist/esm.js +794 -285
- package/dist/esm.json +1051 -215
- package/dist/oxlint-base.d.ts +12 -0
- package/dist/oxlint-base.js +1368 -0
- package/dist/oxlint-browser-esm.d.ts +12 -0
- package/dist/oxlint-browser-esm.js +1379 -0
- package/dist/oxlint-browser.d.ts +12 -0
- package/dist/oxlint-browser.js +1373 -0
- package/dist/oxlint-esm-react-cypress.d.ts +12 -0
- package/dist/oxlint-esm-react-cypress.js +1425 -0
- package/dist/oxlint-esm-react-vitest-storybook.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest-storybook.js +1484 -0
- package/dist/oxlint-esm-react-vitest.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest.js +1450 -0
- package/dist/oxlint-esm-react.d.ts +12 -0
- package/dist/oxlint-esm-react.js +1425 -0
- package/dist/oxlint-esm-vitest.d.ts +12 -0
- package/dist/oxlint-esm-vitest.js +1399 -0
- package/dist/oxlint-esm.d.ts +12 -0
- package/dist/oxlint-esm.js +1374 -0
- package/dist/oxlint-react-cypress.d.ts +12 -0
- package/dist/oxlint-react-cypress.js +1425 -0
- package/dist/oxlint-react-vitest.d.ts +12 -0
- package/dist/oxlint-react-vitest.js +1450 -0
- package/dist/oxlint-react.d.ts +12 -0
- package/dist/oxlint-react.js +1425 -0
- package/dist/oxlint-vitest.d.ts +12 -0
- package/dist/oxlint-vitest.js +1393 -0
- package/dist/react-cypress.js +713 -185
- package/dist/react-cypress.json +1050 -203
- package/dist/react-vitest.js +823 -295
- package/dist/react-vitest.json +1059 -203
- package/dist/react.js +796 -287
- package/dist/react.json +1049 -214
- package/dist/vitest.js +819 -291
- package/dist/vitest.json +1059 -202
- package/package.json +40 -6
|
@@ -7,13 +7,13 @@ import plugin0003 from "@typescript-eslint/parser";
|
|
|
7
7
|
import plugin0004 from "eslint-plugin-no-barrel-files";
|
|
8
8
|
import plugin0005 from "eslint-plugin-import-x";
|
|
9
9
|
import plugin0006 from "eslint-plugin-jsdoc";
|
|
10
|
-
import plugin0007 from "eslint-plugin-
|
|
11
|
-
import plugin0008 from "eslint-plugin-
|
|
12
|
-
import plugin0009 from "eslint-plugin-react";
|
|
13
|
-
import plugin0010 from "eslint-plugin-
|
|
14
|
-
import plugin0011 from "eslint-plugin-
|
|
15
|
-
import plugin0012 from "eslint-plugin-
|
|
16
|
-
import plugin0013 from "eslint-plugin-
|
|
10
|
+
import plugin0007 from "eslint-plugin-sonarjs";
|
|
11
|
+
import plugin0008 from "eslint-plugin-react";
|
|
12
|
+
import plugin0009 from "eslint-plugin-react-hooks";
|
|
13
|
+
import plugin0010 from "eslint-plugin-import-esm";
|
|
14
|
+
import plugin0011 from "eslint-plugin-cypress";
|
|
15
|
+
import plugin0012 from "eslint-plugin-chai-friendly";
|
|
16
|
+
import plugin0013 from "eslint-plugin-no-only-tests";
|
|
17
17
|
|
|
18
18
|
export default [
|
|
19
19
|
{
|
|
@@ -47,7 +47,6 @@ export default [
|
|
|
47
47
|
"no-empty-pattern": "error",
|
|
48
48
|
"no-empty-static-block": "error",
|
|
49
49
|
"no-ex-assign": "error",
|
|
50
|
-
"no-extra-boolean-cast": "error",
|
|
51
50
|
"no-fallthrough": "error",
|
|
52
51
|
"no-func-assign": "error",
|
|
53
52
|
"no-global-assign": "error",
|
|
@@ -69,7 +68,6 @@ export default [
|
|
|
69
68
|
"no-sparse-arrays": "error",
|
|
70
69
|
"no-this-before-super": "error",
|
|
71
70
|
"no-undef": "error",
|
|
72
|
-
"no-unexpected-multiline": "off",
|
|
73
71
|
"no-unreachable": "error",
|
|
74
72
|
"no-unsafe-finally": "error",
|
|
75
73
|
"no-unsafe-negation": "error",
|
|
@@ -79,38 +77,10 @@ export default [
|
|
|
79
77
|
"no-unused-vars": "error",
|
|
80
78
|
"no-useless-backreference": "error",
|
|
81
79
|
"no-useless-catch": "error",
|
|
82
|
-
"no-useless-escape": "off",
|
|
83
80
|
"no-with": "error",
|
|
84
81
|
"require-yield": "error",
|
|
85
82
|
"use-isnan": "error",
|
|
86
83
|
"valid-typeof": "error",
|
|
87
|
-
"no-console": [
|
|
88
|
-
2,
|
|
89
|
-
{
|
|
90
|
-
allow: [
|
|
91
|
-
"warn",
|
|
92
|
-
"error",
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
"no-restricted-exports": [
|
|
97
|
-
2,
|
|
98
|
-
{
|
|
99
|
-
restrictDefaultExports: {
|
|
100
|
-
direct: true,
|
|
101
|
-
named: true,
|
|
102
|
-
defaultFrom: true,
|
|
103
|
-
namedFrom: true,
|
|
104
|
-
namespaceFrom: true,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
"no-duplicate-imports": [
|
|
109
|
-
"error",
|
|
110
|
-
{
|
|
111
|
-
includeExports: true,
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
84
|
"no-restricted-imports": [
|
|
115
85
|
"error",
|
|
116
86
|
{
|
|
@@ -631,17 +601,6 @@ export default [
|
|
|
631
601
|
],
|
|
632
602
|
},
|
|
633
603
|
],
|
|
634
|
-
"no-restricted-syntax": [
|
|
635
|
-
"error",
|
|
636
|
-
{
|
|
637
|
-
selector: "MemberExpression[object.name='React']",
|
|
638
|
-
message: "Do not use `React.*`. Use named imports instead.",
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
selector: "MemberExpression[object.name='ReactDOM']",
|
|
642
|
-
message: "Do not use `ReactDOM.*`. Use named imports instead.",
|
|
643
|
-
},
|
|
644
|
-
],
|
|
645
604
|
"sort-imports": [
|
|
646
605
|
"error",
|
|
647
606
|
{
|
|
@@ -650,13 +609,55 @@ export default [
|
|
|
650
609
|
ignoreMemberSort: false,
|
|
651
610
|
},
|
|
652
611
|
],
|
|
653
|
-
"no-
|
|
612
|
+
"no-useless-escape": "off",
|
|
654
613
|
"no-unneeded-ternary": [
|
|
655
614
|
"error",
|
|
656
615
|
{
|
|
657
616
|
defaultAssignment: false,
|
|
658
617
|
},
|
|
659
618
|
],
|
|
619
|
+
"no-extra-boolean-cast": "error",
|
|
620
|
+
"no-unexpected-multiline": "off",
|
|
621
|
+
"no-duplicate-imports": [
|
|
622
|
+
"error",
|
|
623
|
+
{
|
|
624
|
+
includeExports: true,
|
|
625
|
+
},
|
|
626
|
+
],
|
|
627
|
+
"prefer-const": "off",
|
|
628
|
+
"no-console": [
|
|
629
|
+
2,
|
|
630
|
+
{
|
|
631
|
+
allow: [
|
|
632
|
+
"warn",
|
|
633
|
+
"error",
|
|
634
|
+
],
|
|
635
|
+
},
|
|
636
|
+
],
|
|
637
|
+
"no-restricted-exports": [
|
|
638
|
+
2,
|
|
639
|
+
{
|
|
640
|
+
restrictDefaultExports: {
|
|
641
|
+
direct: true,
|
|
642
|
+
named: true,
|
|
643
|
+
defaultFrom: true,
|
|
644
|
+
namedFrom: true,
|
|
645
|
+
namespaceFrom: true,
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
"no-restricted-syntax": [
|
|
650
|
+
"error",
|
|
651
|
+
{
|
|
652
|
+
selector: "MemberExpression[object.name='React']",
|
|
653
|
+
message: "Do not use `React.*`. Use named imports instead.",
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
selector: "MemberExpression[object.name='ReactDOM']",
|
|
657
|
+
message: "Do not use `ReactDOM.*`. Use named imports instead.",
|
|
658
|
+
},
|
|
659
|
+
],
|
|
660
|
+
"no-negated-condition": "error",
|
|
660
661
|
},
|
|
661
662
|
},
|
|
662
663
|
{
|
|
@@ -664,7 +665,537 @@ export default [
|
|
|
664
665
|
"**/*.ts",
|
|
665
666
|
"**/*.tsx",
|
|
666
667
|
],
|
|
667
|
-
|
|
668
|
+
rules: {
|
|
669
|
+
"no-restricted-imports": [
|
|
670
|
+
"error",
|
|
671
|
+
{
|
|
672
|
+
paths: [
|
|
673
|
+
{
|
|
674
|
+
name: "react",
|
|
675
|
+
importNames: [
|
|
676
|
+
"default",
|
|
677
|
+
],
|
|
678
|
+
message: "Default import from React is not allowed. Use named imports instead.",
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
name: "react-dom",
|
|
682
|
+
importNames: [
|
|
683
|
+
"default",
|
|
684
|
+
],
|
|
685
|
+
message: "Default import from React DOM is not allowed. Use named imports instead.",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
name: "@gooddata/sdk-ui-kit",
|
|
689
|
+
importNames: [
|
|
690
|
+
"Icon",
|
|
691
|
+
],
|
|
692
|
+
message: "The Icon export cannot be tree-shaken, use {IconName}Icon imports instead.",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
name: "vitest",
|
|
696
|
+
importNames: [
|
|
697
|
+
"test",
|
|
698
|
+
],
|
|
699
|
+
message: "Use 'it' instead of 'test' for consistency.",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
patterns: [
|
|
703
|
+
{
|
|
704
|
+
group: [
|
|
705
|
+
"lodash-es",
|
|
706
|
+
],
|
|
707
|
+
importNames: [
|
|
708
|
+
"get",
|
|
709
|
+
"getOr",
|
|
710
|
+
],
|
|
711
|
+
message: "Please use the ?. and ?? operators instead.",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
group: [
|
|
715
|
+
"lodash-es",
|
|
716
|
+
],
|
|
717
|
+
importNames: [
|
|
718
|
+
"keys",
|
|
719
|
+
],
|
|
720
|
+
message: "Please use Object.keys() instead.",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
group: [
|
|
724
|
+
"lodash-es",
|
|
725
|
+
],
|
|
726
|
+
importNames: [
|
|
727
|
+
"values",
|
|
728
|
+
],
|
|
729
|
+
message: "Please use Object.values() instead.",
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
group: [
|
|
733
|
+
"lodash-es",
|
|
734
|
+
],
|
|
735
|
+
importNames: [
|
|
736
|
+
"entries",
|
|
737
|
+
"toPairs",
|
|
738
|
+
],
|
|
739
|
+
message: "Please use Object.entries() instead.",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
group: [
|
|
743
|
+
"lodash-es",
|
|
744
|
+
],
|
|
745
|
+
importNames: [
|
|
746
|
+
"map",
|
|
747
|
+
],
|
|
748
|
+
message: "Please use Array.prototype.map() instead.",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
group: [
|
|
752
|
+
"lodash-es",
|
|
753
|
+
],
|
|
754
|
+
importNames: [
|
|
755
|
+
"flatMap",
|
|
756
|
+
],
|
|
757
|
+
message: "Please use Array.prototype.flatMap() instead.",
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
group: [
|
|
761
|
+
"lodash-es",
|
|
762
|
+
],
|
|
763
|
+
importNames: [
|
|
764
|
+
"filter",
|
|
765
|
+
],
|
|
766
|
+
message: "Please use Array.prototype.filter() instead.",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
group: [
|
|
770
|
+
"lodash-es",
|
|
771
|
+
],
|
|
772
|
+
importNames: [
|
|
773
|
+
"find",
|
|
774
|
+
],
|
|
775
|
+
message: "Please use Array.prototype.find() instead.",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
group: [
|
|
779
|
+
"lodash-es",
|
|
780
|
+
],
|
|
781
|
+
importNames: [
|
|
782
|
+
"findIndex",
|
|
783
|
+
],
|
|
784
|
+
message: "Please use Array.prototype.findIndex() instead.",
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
group: [
|
|
788
|
+
"lodash-es",
|
|
789
|
+
],
|
|
790
|
+
importNames: [
|
|
791
|
+
"includes",
|
|
792
|
+
],
|
|
793
|
+
message: "Please use Array.prototype.includes() instead.",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
group: [
|
|
797
|
+
"lodash-es",
|
|
798
|
+
],
|
|
799
|
+
importNames: [
|
|
800
|
+
"some",
|
|
801
|
+
],
|
|
802
|
+
message: "Please use Array.prototype.some() instead.",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
group: [
|
|
806
|
+
"lodash-es",
|
|
807
|
+
],
|
|
808
|
+
importNames: [
|
|
809
|
+
"every",
|
|
810
|
+
],
|
|
811
|
+
message: "Please use Array.prototype.every() instead.",
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
group: [
|
|
815
|
+
"lodash-es",
|
|
816
|
+
],
|
|
817
|
+
importNames: [
|
|
818
|
+
"concat",
|
|
819
|
+
],
|
|
820
|
+
message: "Please use Array.prototype.concat() or spread [...arr1, ...arr2] instead.",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
group: [
|
|
824
|
+
"lodash-es",
|
|
825
|
+
],
|
|
826
|
+
importNames: [
|
|
827
|
+
"reverse",
|
|
828
|
+
],
|
|
829
|
+
message: "Please use Array.prototype.reverse() instead.",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
group: [
|
|
833
|
+
"lodash-es",
|
|
834
|
+
],
|
|
835
|
+
importNames: [
|
|
836
|
+
"slice",
|
|
837
|
+
],
|
|
838
|
+
message: "Please use Array.prototype.slice() instead.",
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
group: [
|
|
842
|
+
"lodash-es",
|
|
843
|
+
],
|
|
844
|
+
importNames: [
|
|
845
|
+
"indexOf",
|
|
846
|
+
],
|
|
847
|
+
message: "Please use Array.prototype.indexOf() instead.",
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
group: [
|
|
851
|
+
"lodash-es",
|
|
852
|
+
],
|
|
853
|
+
importNames: [
|
|
854
|
+
"lastIndexOf",
|
|
855
|
+
],
|
|
856
|
+
message: "Please use Array.prototype.lastIndexOf() instead.",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
group: [
|
|
860
|
+
"lodash-es",
|
|
861
|
+
],
|
|
862
|
+
importNames: [
|
|
863
|
+
"fill",
|
|
864
|
+
],
|
|
865
|
+
message: "Please use Array.prototype.fill() instead.",
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
group: [
|
|
869
|
+
"lodash-es",
|
|
870
|
+
],
|
|
871
|
+
importNames: [
|
|
872
|
+
"startsWith",
|
|
873
|
+
],
|
|
874
|
+
message: "Please use String.prototype.startsWith() instead.",
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
group: [
|
|
878
|
+
"lodash-es",
|
|
879
|
+
],
|
|
880
|
+
importNames: [
|
|
881
|
+
"endsWith",
|
|
882
|
+
],
|
|
883
|
+
message: "Please use String.prototype.endsWith() instead.",
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
group: [
|
|
887
|
+
"lodash-es",
|
|
888
|
+
],
|
|
889
|
+
importNames: [
|
|
890
|
+
"repeat",
|
|
891
|
+
],
|
|
892
|
+
message: "Please use String.prototype.repeat() instead.",
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
group: [
|
|
896
|
+
"lodash-es",
|
|
897
|
+
],
|
|
898
|
+
importNames: [
|
|
899
|
+
"padStart",
|
|
900
|
+
],
|
|
901
|
+
message: "Please use String.prototype.padStart() instead.",
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
group: [
|
|
905
|
+
"lodash-es",
|
|
906
|
+
],
|
|
907
|
+
importNames: [
|
|
908
|
+
"padEnd",
|
|
909
|
+
],
|
|
910
|
+
message: "Please use String.prototype.padEnd() instead.",
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
group: [
|
|
914
|
+
"lodash-es",
|
|
915
|
+
],
|
|
916
|
+
importNames: [
|
|
917
|
+
"trim",
|
|
918
|
+
],
|
|
919
|
+
message: "Please use String.prototype.trim() instead.",
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
group: [
|
|
923
|
+
"lodash-es",
|
|
924
|
+
],
|
|
925
|
+
importNames: [
|
|
926
|
+
"trimStart",
|
|
927
|
+
"trimLeft",
|
|
928
|
+
],
|
|
929
|
+
message: "Please use String.prototype.trimStart() instead.",
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
group: [
|
|
933
|
+
"lodash-es",
|
|
934
|
+
],
|
|
935
|
+
importNames: [
|
|
936
|
+
"trimEnd",
|
|
937
|
+
"trimRight",
|
|
938
|
+
],
|
|
939
|
+
message: "Please use String.prototype.trimEnd() instead.",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
group: [
|
|
943
|
+
"lodash-es",
|
|
944
|
+
],
|
|
945
|
+
importNames: [
|
|
946
|
+
"toUpper",
|
|
947
|
+
],
|
|
948
|
+
message: "Please use String.prototype.toUpperCase() instead.",
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
group: [
|
|
952
|
+
"lodash-es",
|
|
953
|
+
],
|
|
954
|
+
importNames: [
|
|
955
|
+
"toLower",
|
|
956
|
+
],
|
|
957
|
+
message: "Please use String.prototype.toLowerCase() instead.",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
group: [
|
|
961
|
+
"lodash-es",
|
|
962
|
+
],
|
|
963
|
+
importNames: [
|
|
964
|
+
"isArray",
|
|
965
|
+
],
|
|
966
|
+
message: "Please use Array.isArray() instead.",
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
group: [
|
|
970
|
+
"lodash-es",
|
|
971
|
+
],
|
|
972
|
+
importNames: [
|
|
973
|
+
"isNaN",
|
|
974
|
+
],
|
|
975
|
+
message: "Please use Number.isNaN() instead.",
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
group: [
|
|
979
|
+
"lodash-es",
|
|
980
|
+
],
|
|
981
|
+
importNames: [
|
|
982
|
+
"isFinite",
|
|
983
|
+
],
|
|
984
|
+
message: "Please use Number.isFinite() instead.",
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
group: [
|
|
988
|
+
"lodash-es",
|
|
989
|
+
],
|
|
990
|
+
importNames: [
|
|
991
|
+
"isInteger",
|
|
992
|
+
],
|
|
993
|
+
message: "Please use Number.isInteger() instead.",
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
group: [
|
|
997
|
+
"lodash-es",
|
|
998
|
+
],
|
|
999
|
+
importNames: [
|
|
1000
|
+
"isNull",
|
|
1001
|
+
],
|
|
1002
|
+
message: "Please use value === null instead.",
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
group: [
|
|
1006
|
+
"lodash-es",
|
|
1007
|
+
],
|
|
1008
|
+
importNames: [
|
|
1009
|
+
"isUndefined",
|
|
1010
|
+
],
|
|
1011
|
+
message: "Please use value === undefined instead.",
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
group: [
|
|
1015
|
+
"lodash-es",
|
|
1016
|
+
],
|
|
1017
|
+
importNames: [
|
|
1018
|
+
"defaultTo",
|
|
1019
|
+
],
|
|
1020
|
+
message: "Please use value ?? defaultValue instead.",
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
group: [
|
|
1024
|
+
"lodash-es",
|
|
1025
|
+
],
|
|
1026
|
+
importNames: [
|
|
1027
|
+
"assign",
|
|
1028
|
+
],
|
|
1029
|
+
message: "Please use Object.assign() or spread syntax {...obj} instead.",
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
group: [
|
|
1033
|
+
"lodash-es",
|
|
1034
|
+
],
|
|
1035
|
+
importNames: [
|
|
1036
|
+
"flatten",
|
|
1037
|
+
],
|
|
1038
|
+
message: "Please use Array.prototype.flat() instead.",
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
group: [
|
|
1042
|
+
"lodash-es",
|
|
1043
|
+
],
|
|
1044
|
+
importNames: [
|
|
1045
|
+
"flattenDeep",
|
|
1046
|
+
],
|
|
1047
|
+
message: "Please use Array.prototype.flat(Infinity) instead.",
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
group: [
|
|
1051
|
+
"lodash-es",
|
|
1052
|
+
],
|
|
1053
|
+
importNames: [
|
|
1054
|
+
"isNil",
|
|
1055
|
+
],
|
|
1056
|
+
message: "Please use value === null || value === undefined instead.",
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
group: [
|
|
1060
|
+
"lodash-es",
|
|
1061
|
+
],
|
|
1062
|
+
importNames: [
|
|
1063
|
+
"noop",
|
|
1064
|
+
],
|
|
1065
|
+
message: "Please use () => {} instead.",
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
group: [
|
|
1069
|
+
"lodash-es",
|
|
1070
|
+
],
|
|
1071
|
+
importNames: [
|
|
1072
|
+
"identity",
|
|
1073
|
+
],
|
|
1074
|
+
message: "Please use x => x instead.",
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
group: [
|
|
1078
|
+
"lodash-es",
|
|
1079
|
+
],
|
|
1080
|
+
importNames: [
|
|
1081
|
+
"first",
|
|
1082
|
+
"head",
|
|
1083
|
+
],
|
|
1084
|
+
message: "Please use Array.prototype.at(0) instead.",
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
group: [
|
|
1088
|
+
"lodash-es",
|
|
1089
|
+
],
|
|
1090
|
+
importNames: [
|
|
1091
|
+
"last",
|
|
1092
|
+
],
|
|
1093
|
+
message: "Please use Array.prototype.at(-1) instead.",
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
group: [
|
|
1097
|
+
"lodash-es",
|
|
1098
|
+
],
|
|
1099
|
+
importNames: [
|
|
1100
|
+
"forEach",
|
|
1101
|
+
],
|
|
1102
|
+
message: "Please use Array.prototype.forEach() instead.",
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
group: [
|
|
1106
|
+
"lodash-es",
|
|
1107
|
+
],
|
|
1108
|
+
importNames: [
|
|
1109
|
+
"fromPairs",
|
|
1110
|
+
],
|
|
1111
|
+
message: "Please use Object.fromEntries() instead.",
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
group: [
|
|
1115
|
+
"lodash-es",
|
|
1116
|
+
],
|
|
1117
|
+
importNames: [
|
|
1118
|
+
"join",
|
|
1119
|
+
],
|
|
1120
|
+
message: "Please use Array.prototype.join() instead.",
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
group: [
|
|
1124
|
+
"lodash-es",
|
|
1125
|
+
],
|
|
1126
|
+
importNames: [
|
|
1127
|
+
"isDate",
|
|
1128
|
+
],
|
|
1129
|
+
message: "Please use val instanceof Date instead.",
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
group: [
|
|
1133
|
+
"lodash-es",
|
|
1134
|
+
],
|
|
1135
|
+
importNames: [
|
|
1136
|
+
"isFunction",
|
|
1137
|
+
],
|
|
1138
|
+
message: "Please use typeof val === 'function' instead.",
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
group: [
|
|
1142
|
+
"lodash-es",
|
|
1143
|
+
],
|
|
1144
|
+
importNames: [
|
|
1145
|
+
"isNumber",
|
|
1146
|
+
],
|
|
1147
|
+
message: "Please use typeof val === 'number' instead.",
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
group: [
|
|
1151
|
+
"lodash-es",
|
|
1152
|
+
],
|
|
1153
|
+
importNames: [
|
|
1154
|
+
"isObject",
|
|
1155
|
+
],
|
|
1156
|
+
message: "Please use val !== null && typeof val === 'object' instead.",
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
group: [
|
|
1160
|
+
"lodash-es",
|
|
1161
|
+
],
|
|
1162
|
+
importNames: [
|
|
1163
|
+
"isString",
|
|
1164
|
+
],
|
|
1165
|
+
message: "Please use typeof val === 'string' instead.",
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
group: [
|
|
1169
|
+
"lodash-es",
|
|
1170
|
+
],
|
|
1171
|
+
importNames: [
|
|
1172
|
+
"toString",
|
|
1173
|
+
],
|
|
1174
|
+
message: "Please use String(val) instead.",
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
group: [
|
|
1178
|
+
"lodash-es",
|
|
1179
|
+
],
|
|
1180
|
+
importNames: [
|
|
1181
|
+
"flow",
|
|
1182
|
+
"flowRight",
|
|
1183
|
+
],
|
|
1184
|
+
message: "Please use refactoring your code instead.",
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
group: [
|
|
1188
|
+
"vitest",
|
|
1189
|
+
],
|
|
1190
|
+
message: "Importing from vitest is only allowed in test files.",
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1193
|
+
},
|
|
1194
|
+
],
|
|
1195
|
+
},
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
files: [
|
|
668
1199
|
"**/vitest.config.ts",
|
|
669
1200
|
"**/vitest.*.config.ts",
|
|
670
1201
|
"**/vitest.setup.ts",
|
|
@@ -1194,12 +1725,6 @@ export default [
|
|
|
1194
1725
|
],
|
|
1195
1726
|
message: "Please use refactoring your code instead.",
|
|
1196
1727
|
},
|
|
1197
|
-
{
|
|
1198
|
-
group: [
|
|
1199
|
-
"vitest",
|
|
1200
|
-
],
|
|
1201
|
-
message: "Importing from vitest is only allowed in test files.",
|
|
1202
|
-
},
|
|
1203
1728
|
],
|
|
1204
1729
|
},
|
|
1205
1730
|
],
|
|
@@ -1280,17 +1805,12 @@ export default [
|
|
|
1280
1805
|
"prefer-const": "error",
|
|
1281
1806
|
"prefer-rest-params": "error",
|
|
1282
1807
|
"prefer-spread": "error",
|
|
1283
|
-
"@typescript-eslint/ban-ts-comment": [
|
|
1284
|
-
"error",
|
|
1285
|
-
{
|
|
1286
|
-
"ts-expect-error": "allow-with-description",
|
|
1287
|
-
},
|
|
1288
|
-
],
|
|
1289
1808
|
"no-array-constructor": "off",
|
|
1809
|
+
"no-unused-expressions": "off",
|
|
1810
|
+
"no-unused-vars": "off",
|
|
1290
1811
|
"@typescript-eslint/no-array-constructor": "error",
|
|
1291
1812
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
1292
1813
|
"@typescript-eslint/no-empty-object-type": "error",
|
|
1293
|
-
"@typescript-eslint/no-explicit-any": "error",
|
|
1294
1814
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
1295
1815
|
"@typescript-eslint/no-misused-new": "error",
|
|
1296
1816
|
"@typescript-eslint/no-namespace": "error",
|
|
@@ -1299,10 +1819,12 @@ export default [
|
|
|
1299
1819
|
"@typescript-eslint/no-this-alias": "error",
|
|
1300
1820
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
1301
1821
|
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
1302
|
-
"@typescript-eslint/
|
|
1303
|
-
"
|
|
1304
|
-
"@typescript-eslint/
|
|
1305
|
-
"
|
|
1822
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
1823
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
1824
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
1825
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
1826
|
+
"@typescript-eslint/no-use-before-define": 0,
|
|
1827
|
+
"@typescript-eslint/no-empty-function": 0,
|
|
1306
1828
|
"@typescript-eslint/no-unused-vars": [
|
|
1307
1829
|
2,
|
|
1308
1830
|
{
|
|
@@ -1310,27 +1832,16 @@ export default [
|
|
|
1310
1832
|
argsIgnorePattern: "^_.*$",
|
|
1311
1833
|
},
|
|
1312
1834
|
],
|
|
1313
|
-
"@typescript-eslint/no-
|
|
1314
|
-
"@typescript-eslint/
|
|
1315
|
-
"@typescript-eslint/
|
|
1316
|
-
"@typescript-eslint/triple-slash-reference": "error",
|
|
1317
|
-
"@typescript-eslint/explicit-function-return-type": 0,
|
|
1318
|
-
"@typescript-eslint/no-use-before-define": 0,
|
|
1319
|
-
"@typescript-eslint/no-empty-function": 0,
|
|
1320
|
-
"@typescript-eslint/naming-convention": [
|
|
1835
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
1836
|
+
"@typescript-eslint/array-type": "off",
|
|
1837
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
1321
1838
|
"error",
|
|
1322
1839
|
{
|
|
1323
|
-
|
|
1324
|
-
format: [
|
|
1325
|
-
"PascalCase",
|
|
1326
|
-
],
|
|
1327
|
-
custom: {
|
|
1328
|
-
regex: "^I[A-Z]",
|
|
1329
|
-
match: true,
|
|
1330
|
-
},
|
|
1840
|
+
"ts-expect-error": "allow-with-description",
|
|
1331
1841
|
},
|
|
1332
1842
|
],
|
|
1333
|
-
"@typescript-eslint/
|
|
1843
|
+
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
1844
|
+
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
1334
1845
|
"@typescript-eslint/no-restricted-types": [
|
|
1335
1846
|
"error",
|
|
1336
1847
|
{
|
|
@@ -1354,18 +1865,11 @@ export default [
|
|
|
1354
1865
|
},
|
|
1355
1866
|
},
|
|
1356
1867
|
],
|
|
1357
|
-
"@typescript-eslint/consistent-type-exports": [
|
|
1358
|
-
"error",
|
|
1359
|
-
{
|
|
1360
|
-
fixMixedExportsWithInlineTypeSpecifier: false,
|
|
1361
|
-
},
|
|
1362
|
-
],
|
|
1363
1868
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
1364
1869
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
1365
1870
|
"@typescript-eslint/member-ordering": "off",
|
|
1366
1871
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
1367
1872
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
1368
|
-
"@typescript-eslint/prefer-optional-chain": "error",
|
|
1369
1873
|
"no-restricted-syntax": [
|
|
1370
1874
|
"error",
|
|
1371
1875
|
{
|
|
@@ -1396,6 +1900,26 @@ export default [
|
|
|
1396
1900
|
fixStyle: "inline-type-imports",
|
|
1397
1901
|
},
|
|
1398
1902
|
],
|
|
1903
|
+
"@typescript-eslint/prefer-optional-chain": "error",
|
|
1904
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
1905
|
+
"error",
|
|
1906
|
+
{
|
|
1907
|
+
fixMixedExportsWithInlineTypeSpecifier: false,
|
|
1908
|
+
},
|
|
1909
|
+
],
|
|
1910
|
+
"@typescript-eslint/naming-convention": [
|
|
1911
|
+
"error",
|
|
1912
|
+
{
|
|
1913
|
+
selector: "interface",
|
|
1914
|
+
format: [
|
|
1915
|
+
"PascalCase",
|
|
1916
|
+
],
|
|
1917
|
+
custom: {
|
|
1918
|
+
regex: "^I[A-Z]",
|
|
1919
|
+
match: true,
|
|
1920
|
+
},
|
|
1921
|
+
},
|
|
1922
|
+
],
|
|
1399
1923
|
},
|
|
1400
1924
|
},
|
|
1401
1925
|
{
|
|
@@ -1406,6 +1930,14 @@ export default [
|
|
|
1406
1930
|
"no-barrel-files/no-barrel-files": "error",
|
|
1407
1931
|
},
|
|
1408
1932
|
},
|
|
1933
|
+
{
|
|
1934
|
+
files: [
|
|
1935
|
+
"**/eslint.config.ts",
|
|
1936
|
+
],
|
|
1937
|
+
rules: {
|
|
1938
|
+
"no-barrel-files/no-barrel-files": "off",
|
|
1939
|
+
},
|
|
1940
|
+
},
|
|
1409
1941
|
{
|
|
1410
1942
|
plugins: {
|
|
1411
1943
|
"import-x": plugin0005,
|
|
@@ -1419,7 +1951,6 @@ export default [
|
|
|
1419
1951
|
],
|
|
1420
1952
|
},
|
|
1421
1953
|
rules: {
|
|
1422
|
-
"import-x/no-unresolved": "error",
|
|
1423
1954
|
"import-x/named": "error",
|
|
1424
1955
|
"import-x/namespace": "error",
|
|
1425
1956
|
"import-x/default": "error",
|
|
@@ -1427,6 +1958,7 @@ export default [
|
|
|
1427
1958
|
"import-x/no-named-as-default": "warn",
|
|
1428
1959
|
"import-x/no-named-as-default-member": "warn",
|
|
1429
1960
|
"import-x/no-duplicates": "warn",
|
|
1961
|
+
"import-x/no-unassigned-import": "error",
|
|
1430
1962
|
"import-x/order": [
|
|
1431
1963
|
"error",
|
|
1432
1964
|
{
|
|
@@ -1462,7 +1994,6 @@ export default [
|
|
|
1462
1994
|
"newlines-between": "always",
|
|
1463
1995
|
},
|
|
1464
1996
|
],
|
|
1465
|
-
"import-x/no-unassigned-import": "error",
|
|
1466
1997
|
},
|
|
1467
1998
|
},
|
|
1468
1999
|
{
|
|
@@ -1501,9 +2032,6 @@ export default [
|
|
|
1501
2032
|
},
|
|
1502
2033
|
},
|
|
1503
2034
|
},
|
|
1504
|
-
rules: {
|
|
1505
|
-
"import-x/named": "off",
|
|
1506
|
-
},
|
|
1507
2035
|
},
|
|
1508
2036
|
{
|
|
1509
2037
|
files: [
|
|
@@ -1523,34 +2051,14 @@ export default [
|
|
|
1523
2051
|
},
|
|
1524
2052
|
{
|
|
1525
2053
|
plugins: {
|
|
1526
|
-
|
|
1527
|
-
},
|
|
1528
|
-
rules: {
|
|
1529
|
-
"no-only-tests/no-only-tests": [
|
|
1530
|
-
"error",
|
|
1531
|
-
{
|
|
1532
|
-
block: [
|
|
1533
|
-
"fixture",
|
|
1534
|
-
],
|
|
1535
|
-
focus: [
|
|
1536
|
-
"only",
|
|
1537
|
-
],
|
|
1538
|
-
},
|
|
1539
|
-
],
|
|
1540
|
-
},
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
plugins: {
|
|
1544
|
-
sonarjs: plugin0008,
|
|
2054
|
+
sonarjs: plugin0007,
|
|
1545
2055
|
},
|
|
1546
2056
|
rules: {
|
|
1547
2057
|
"sonarjs/function-name": "off",
|
|
1548
|
-
"sonarjs/class-name": "off",
|
|
1549
2058
|
"sonarjs/max-lines": "off",
|
|
1550
2059
|
"sonarjs/no-tab": "off",
|
|
1551
2060
|
"sonarjs/variable-name": "off",
|
|
1552
2061
|
"sonarjs/comment-regex": "off",
|
|
1553
|
-
"sonarjs/no-commented-code": "off",
|
|
1554
2062
|
"sonarjs/elseif-without-else": "off",
|
|
1555
2063
|
"sonarjs/no-fallthrough": "error",
|
|
1556
2064
|
"sonarjs/nested-control-flow": "off",
|
|
@@ -1563,15 +2071,11 @@ export default [
|
|
|
1563
2071
|
"sonarjs/expression-complexity": "off",
|
|
1564
2072
|
"sonarjs/no-redundant-parentheses": "off",
|
|
1565
2073
|
"sonarjs/no-labels": "error",
|
|
1566
|
-
"sonarjs/no-nested-assignment": "off",
|
|
1567
2074
|
"sonarjs/no-redundant-boolean": "error",
|
|
1568
2075
|
"sonarjs/prefer-single-boolean-return": "error",
|
|
1569
2076
|
"sonarjs/unused-import": "error",
|
|
1570
|
-
"sonarjs/fixme-tag": "off",
|
|
1571
|
-
"sonarjs/todo-tag": "warn",
|
|
1572
2077
|
"sonarjs/useless-string-operation": "off",
|
|
1573
2078
|
"sonarjs/no-unused-function-argument": "off",
|
|
1574
|
-
"sonarjs/no-duplicate-string": "off",
|
|
1575
2079
|
"sonarjs/no-case-label-in-switch": "error",
|
|
1576
2080
|
"sonarjs/no-parameter-reassignment": "error",
|
|
1577
2081
|
"sonarjs/prefer-while": "error",
|
|
@@ -1579,14 +2083,11 @@ export default [
|
|
|
1579
2083
|
"sonarjs/no-small-switch": "error",
|
|
1580
2084
|
"sonarjs/no-hardcoded-ip": "error",
|
|
1581
2085
|
"sonarjs/label-position": "error",
|
|
1582
|
-
"sonarjs/public-static-readonly": "off",
|
|
1583
2086
|
"sonarjs/file-header": "off",
|
|
1584
2087
|
"sonarjs/call-argument-line": "error",
|
|
1585
2088
|
"sonarjs/max-switch-cases": "error",
|
|
1586
|
-
"sonarjs/no-unused-vars": "off",
|
|
1587
2089
|
"sonarjs/prefer-immediate-return": "off",
|
|
1588
2090
|
"sonarjs/function-inside-loop": "error",
|
|
1589
|
-
"sonarjs/code-eval": "off",
|
|
1590
2091
|
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
1591
2092
|
"sonarjs/future-reserved-words": "error",
|
|
1592
2093
|
"sonarjs/array-constructor": "off",
|
|
@@ -1595,52 +2096,34 @@ export default [
|
|
|
1595
2096
|
"sonarjs/no-primitive-wrappers": "error",
|
|
1596
2097
|
"sonarjs/for-in": "off",
|
|
1597
2098
|
"sonarjs/cyclomatic-complexity": "off",
|
|
1598
|
-
"sonarjs/no-skipped-tests": "off",
|
|
1599
2099
|
"sonarjs/no-identical-expressions": "error",
|
|
1600
2100
|
"sonarjs/no-nested-switch": "off",
|
|
1601
|
-
"sonarjs/constructor-for-side-effects": "off",
|
|
1602
|
-
"sonarjs/no-dead-store": "off",
|
|
1603
2101
|
"sonarjs/no-identical-conditions": "error",
|
|
1604
2102
|
"sonarjs/no-duplicated-branches": "error",
|
|
1605
|
-
"sonarjs/deprecation": "off",
|
|
1606
|
-
"sonarjs/no-inverted-boolean-check": "off",
|
|
1607
2103
|
"sonarjs/misplaced-loop-counter": "error",
|
|
1608
|
-
"sonarjs/no-nested-functions": "off",
|
|
1609
|
-
"sonarjs/no-hardcoded-passwords": "off",
|
|
1610
2104
|
"sonarjs/sql-queries": "error",
|
|
1611
2105
|
"sonarjs/insecure-cookie": "error",
|
|
1612
2106
|
"sonarjs/no-useless-increment": "error",
|
|
1613
|
-
"sonarjs/no-globals-shadowing": "off",
|
|
1614
2107
|
"sonarjs/no-undefined-assignment": "off",
|
|
1615
|
-
"sonarjs/no-empty-test-file": "off",
|
|
1616
|
-
"sonarjs/no-ignored-return": "off",
|
|
1617
2108
|
"sonarjs/no-wildcard-import": "off",
|
|
1618
|
-
"sonarjs/arguments-order": "off",
|
|
1619
|
-
"sonarjs/pseudo-random": "off",
|
|
1620
2109
|
"sonarjs/for-loop-increment-sign": "error",
|
|
1621
2110
|
"sonarjs/cookies": "off",
|
|
1622
2111
|
"sonarjs/null-dereference": "error",
|
|
1623
|
-
"sonarjs/no-selector-parameter": "off",
|
|
1624
2112
|
"sonarjs/updated-loop-counter": "error",
|
|
1625
2113
|
"sonarjs/block-scoped-var": "error",
|
|
1626
2114
|
"sonarjs/no-built-in-override": "off",
|
|
1627
2115
|
"sonarjs/prefer-object-literal": "off",
|
|
1628
|
-
"sonarjs/no-ignored-exceptions": "off",
|
|
1629
2116
|
"sonarjs/no-gratuitous-expressions": "error",
|
|
1630
2117
|
"sonarjs/file-uploads": "error",
|
|
1631
2118
|
"sonarjs/file-permissions": "error",
|
|
1632
2119
|
"sonarjs/no-empty-character-class": "error",
|
|
1633
2120
|
"sonarjs/no-unenclosed-multiline-block": "error",
|
|
1634
2121
|
"sonarjs/index-of-compare-to-positive-number": "error",
|
|
1635
|
-
"sonarjs/assertions-in-tests": "off",
|
|
1636
|
-
"sonarjs/no-implicit-global": "off",
|
|
1637
2122
|
"sonarjs/no-useless-catch": "error",
|
|
1638
2123
|
"sonarjs/xml-parser-xxe": "error",
|
|
1639
2124
|
"sonarjs/non-existent-operator": "error",
|
|
1640
2125
|
"sonarjs/web-sql-database": "off",
|
|
1641
|
-
"sonarjs/post-message": "off",
|
|
1642
2126
|
"sonarjs/no-array-delete": "error",
|
|
1643
|
-
"sonarjs/no-alphabetical-sort": "off",
|
|
1644
2127
|
"sonarjs/no-incomplete-assertions": "error",
|
|
1645
2128
|
"sonarjs/no-global-this": "error",
|
|
1646
2129
|
"sonarjs/new-operator-misuse": "error",
|
|
@@ -1648,18 +2131,14 @@ export default [
|
|
|
1648
2131
|
"sonarjs/strings-comparison": "off",
|
|
1649
2132
|
"sonarjs/file-name-differ-from-class": "off",
|
|
1650
2133
|
"sonarjs/cookie-no-httponly": "error",
|
|
1651
|
-
"sonarjs/no-nested-conditional": "off",
|
|
1652
2134
|
"sonarjs/no-incorrect-string-concat": "off",
|
|
1653
|
-
"sonarjs/different-types-comparison": "off",
|
|
1654
2135
|
"sonarjs/inverted-assertion-arguments": "error",
|
|
1655
2136
|
"sonarjs/shorthand-property-grouping": "off",
|
|
1656
2137
|
"sonarjs/updated-const-var": "error",
|
|
1657
2138
|
"sonarjs/arguments-usage": "off",
|
|
1658
2139
|
"sonarjs/destructuring-assignment-syntax": "off",
|
|
1659
|
-
"sonarjs/no-invariant-returns": "off",
|
|
1660
2140
|
"sonarjs/arrow-function-convention": "off",
|
|
1661
2141
|
"sonarjs/class-prototype": "off",
|
|
1662
|
-
"sonarjs/generator-without-yield": "off",
|
|
1663
2142
|
"sonarjs/no-require-or-define": "off",
|
|
1664
2143
|
"sonarjs/no-associative-arrays": "error",
|
|
1665
2144
|
"sonarjs/comma-or-logical-or-case": "error",
|
|
@@ -1667,16 +2146,11 @@ export default [
|
|
|
1667
2146
|
"sonarjs/inconsistent-function-call": "error",
|
|
1668
2147
|
"sonarjs/no-use-of-empty-return-value": "error",
|
|
1669
2148
|
"sonarjs/enforce-trailing-comma": "off",
|
|
1670
|
-
"sonarjs/void-use": "off",
|
|
1671
2149
|
"sonarjs/operation-returning-nan": "off",
|
|
1672
2150
|
"sonarjs/values-not-convertible-to-numbers": "off",
|
|
1673
2151
|
"sonarjs/non-number-in-arithmetic-expression": "off",
|
|
1674
|
-
"sonarjs/cognitive-complexity": "warn",
|
|
1675
|
-
"sonarjs/argument-type": "off",
|
|
1676
2152
|
"sonarjs/in-operator-type-error": "error",
|
|
1677
|
-
"sonarjs/array-callback-without-return": "off",
|
|
1678
2153
|
"sonarjs/declarations-in-global-scope": "off",
|
|
1679
|
-
"sonarjs/function-return-type": "off",
|
|
1680
2154
|
"sonarjs/no-inconsistent-returns": "off",
|
|
1681
2155
|
"sonarjs/no-reference-error": "off",
|
|
1682
2156
|
"sonarjs/super-invocation": "error",
|
|
@@ -1686,50 +2160,36 @@ export default [
|
|
|
1686
2160
|
"sonarjs/no-collection-size-mischeck": "error",
|
|
1687
2161
|
"sonarjs/no-unthrown-error": "error",
|
|
1688
2162
|
"sonarjs/no-unused-collection": "error",
|
|
1689
|
-
"sonarjs/no-os-command-from-path": "off",
|
|
1690
|
-
"sonarjs/no-misleading-array-reverse": "off",
|
|
1691
2163
|
"sonarjs/no-for-in-iterable": "off",
|
|
1692
2164
|
"sonarjs/no-element-overwrite": "error",
|
|
1693
2165
|
"sonarjs/no-identical-functions": "error",
|
|
1694
2166
|
"sonarjs/no-empty-collection": "error",
|
|
1695
2167
|
"sonarjs/no-redundant-assignments": "error",
|
|
1696
2168
|
"sonarjs/prefer-type-guard": "error",
|
|
1697
|
-
"sonarjs/use-type-alias": "off",
|
|
1698
2169
|
"sonarjs/no-return-type-any": "off",
|
|
1699
2170
|
"sonarjs/no-implicit-dependencies": "off",
|
|
1700
|
-
"sonarjs/no-useless-intersection": "off",
|
|
1701
2171
|
"sonarjs/weak-ssl": "error",
|
|
1702
2172
|
"sonarjs/no-weak-keys": "error",
|
|
1703
2173
|
"sonarjs/csrf": "error",
|
|
1704
2174
|
"sonarjs/production-debug": "error",
|
|
1705
|
-
"sonarjs/prefer-default-last": "off",
|
|
1706
2175
|
"sonarjs/no-in-misuse": "error",
|
|
1707
2176
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
1708
2177
|
"sonarjs/max-union-size": "off",
|
|
1709
|
-
"sonarjs/no-undefined-argument": "off",
|
|
1710
2178
|
"sonarjs/no-nested-template-literals": "error",
|
|
1711
|
-
"sonarjs/prefer-promise-shorthand": "off",
|
|
1712
|
-
"sonarjs/os-command": "off",
|
|
1713
|
-
"sonarjs/no-redundant-optional": "off",
|
|
1714
2179
|
"sonarjs/regular-expr": "off",
|
|
1715
2180
|
"sonarjs/encryption": "off",
|
|
1716
2181
|
"sonarjs/hashing": "error",
|
|
1717
2182
|
"sonarjs/bool-param-default": "off",
|
|
1718
2183
|
"sonarjs/xpath": "off",
|
|
1719
2184
|
"sonarjs/sockets": "off",
|
|
1720
|
-
"sonarjs/no-try-promise": "off",
|
|
1721
2185
|
"sonarjs/process-argv": "off",
|
|
1722
2186
|
"sonarjs/standard-input": "off",
|
|
1723
2187
|
"sonarjs/unverified-certificate": "error",
|
|
1724
|
-
"sonarjs/no-unsafe-unzip": "off",
|
|
1725
2188
|
"sonarjs/cors": "error",
|
|
1726
|
-
"sonarjs/link-with-target-blank": "off",
|
|
1727
2189
|
"sonarjs/disabled-auto-escaping": "error",
|
|
1728
|
-
"sonarjs/table-header": "off",
|
|
1729
2190
|
"sonarjs/no-table-as-layout": "error",
|
|
1730
2191
|
"sonarjs/table-header-reference": "error",
|
|
1731
2192
|
"sonarjs/object-alt-content": "error",
|
|
1732
|
-
"sonarjs/no-clear-text-protocols": "off",
|
|
1733
2193
|
"sonarjs/publicly-writable-directories": "error",
|
|
1734
2194
|
"sonarjs/unverified-hostname": "error",
|
|
1735
2195
|
"sonarjs/encryption-secure-mode": "error",
|
|
@@ -1750,21 +2210,15 @@ export default [
|
|
|
1750
2210
|
"sonarjs/dns-prefetching": "off",
|
|
1751
2211
|
"sonarjs/confidential-information-logging": "error",
|
|
1752
2212
|
"sonarjs/no-ip-forward": "error",
|
|
1753
|
-
"sonarjs/empty-string-repetition": "off",
|
|
1754
|
-
"sonarjs/regex-complexity": "off",
|
|
1755
|
-
"sonarjs/anchor-precedence": "off",
|
|
1756
|
-
"sonarjs/slow-regex": "off",
|
|
1757
2213
|
"sonarjs/no-invalid-regexp": "error",
|
|
1758
2214
|
"sonarjs/unused-named-groups": "error",
|
|
1759
2215
|
"sonarjs/no-same-argument-assert": "error",
|
|
1760
2216
|
"sonarjs/unicode-aware-regex": "off",
|
|
1761
2217
|
"sonarjs/no-misleading-character-class": "error",
|
|
1762
|
-
"sonarjs/duplicates-in-character-class": "off",
|
|
1763
2218
|
"sonarjs/session-regeneration": "error",
|
|
1764
2219
|
"sonarjs/test-check-exception": "error",
|
|
1765
2220
|
"sonarjs/stable-tests": "error",
|
|
1766
2221
|
"sonarjs/no-empty-after-reluctant": "error",
|
|
1767
|
-
"sonarjs/single-character-alternation": "off",
|
|
1768
2222
|
"sonarjs/no-code-after-done": "error",
|
|
1769
2223
|
"sonarjs/disabled-timeout": "error",
|
|
1770
2224
|
"sonarjs/chai-determinate-assertion": "error",
|
|
@@ -1785,7 +2239,6 @@ export default [
|
|
|
1785
2239
|
"sonarjs/aws-sagemaker-unencrypted-notebook": "error",
|
|
1786
2240
|
"sonarjs/aws-restricted-ip-admin-access": "error",
|
|
1787
2241
|
"sonarjs/no-empty-alternatives": "error",
|
|
1788
|
-
"sonarjs/no-control-regex": "off",
|
|
1789
2242
|
"sonarjs/no-regex-spaces": "error",
|
|
1790
2243
|
"sonarjs/aws-sns-unencrypted-topics": "error",
|
|
1791
2244
|
"sonarjs/existing-groups": "error",
|
|
@@ -1795,24 +2248,81 @@ export default [
|
|
|
1795
2248
|
"sonarjs/aws-efs-unencrypted": "error",
|
|
1796
2249
|
"sonarjs/aws-apigateway-public-api": "error",
|
|
1797
2250
|
"sonarjs/stateful-regex": "error",
|
|
1798
|
-
"sonarjs/concise-regex": "off",
|
|
1799
2251
|
"sonarjs/single-char-in-character-classes": "error",
|
|
1800
|
-
"sonarjs/no-hardcoded-secrets": "off",
|
|
1801
2252
|
"sonarjs/no-exclusive-tests": "error",
|
|
1802
2253
|
"sonarjs/hardcoded-secret-signatures": "error",
|
|
1803
2254
|
"sonarjs/jsx-no-leaked-render": "error",
|
|
1804
2255
|
"sonarjs/no-hook-setter-in-body": "error",
|
|
1805
|
-
"sonarjs/no-useless-react-setstate": "off",
|
|
1806
2256
|
"sonarjs/no-uniq-key": "error",
|
|
1807
|
-
"sonarjs/redundant-type-aliases": "off",
|
|
1808
|
-
"sonarjs/prefer-regexp-exec": "off",
|
|
1809
2257
|
"sonarjs/no-internal-api-use": "error",
|
|
1810
|
-
"sonarjs/prefer-read-only-props": "off",
|
|
1811
2258
|
"sonarjs/no-literal-call": "error",
|
|
1812
|
-
"sonarjs/reduce-initial-value": "off",
|
|
1813
|
-
"sonarjs/no-async-constructor": "off",
|
|
1814
2259
|
"sonarjs/review-blockchain-mnemonic": "error",
|
|
1815
2260
|
"sonarjs/dynamically-constructed-templates": "error",
|
|
2261
|
+
"sonarjs/no-duplicate-string": "off",
|
|
2262
|
+
"sonarjs/cognitive-complexity": "warn",
|
|
2263
|
+
"sonarjs/todo-tag": "warn",
|
|
2264
|
+
"sonarjs/no-hardcoded-passwords": "off",
|
|
2265
|
+
"sonarjs/no-alphabetical-sort": "off",
|
|
2266
|
+
"sonarjs/no-os-command-from-path": "off",
|
|
2267
|
+
"sonarjs/os-command": "off",
|
|
2268
|
+
"sonarjs/prefer-regexp-exec": "off",
|
|
2269
|
+
"sonarjs/no-clear-text-protocols": "off",
|
|
2270
|
+
"sonarjs/deprecation": "off",
|
|
2271
|
+
"sonarjs/no-nested-conditional": "off",
|
|
2272
|
+
"sonarjs/no-ignored-exceptions": "off",
|
|
2273
|
+
"sonarjs/slow-regex": "off",
|
|
2274
|
+
"sonarjs/prefer-read-only-props": "off",
|
|
2275
|
+
"sonarjs/no-skipped-tests": "off",
|
|
2276
|
+
"sonarjs/no-commented-code": "off",
|
|
2277
|
+
"sonarjs/no-ignored-return": "off",
|
|
2278
|
+
"sonarjs/array-callback-without-return": "off",
|
|
2279
|
+
"sonarjs/pseudo-random": "off",
|
|
2280
|
+
"sonarjs/no-nested-functions": "off",
|
|
2281
|
+
"sonarjs/no-async-constructor": "off",
|
|
2282
|
+
"sonarjs/assertions-in-tests": "off",
|
|
2283
|
+
"sonarjs/function-return-type": "off",
|
|
2284
|
+
"sonarjs/no-unused-vars": "off",
|
|
2285
|
+
"sonarjs/no-invariant-returns": "off",
|
|
2286
|
+
"sonarjs/different-types-comparison": "off",
|
|
2287
|
+
"sonarjs/no-selector-parameter": "off",
|
|
2288
|
+
"sonarjs/anchor-precedence": "off",
|
|
2289
|
+
"sonarjs/redundant-type-aliases": "off",
|
|
2290
|
+
"sonarjs/no-redundant-optional": "off",
|
|
2291
|
+
"sonarjs/reduce-initial-value": "off",
|
|
2292
|
+
"sonarjs/no-globals-shadowing": "off",
|
|
2293
|
+
"sonarjs/use-type-alias": "off",
|
|
2294
|
+
"sonarjs/void-use": "off",
|
|
2295
|
+
"sonarjs/no-undefined-argument": "off",
|
|
2296
|
+
"sonarjs/no-useless-react-setstate": "off",
|
|
2297
|
+
"sonarjs/no-inverted-boolean-check": "off",
|
|
2298
|
+
"sonarjs/concise-regex": "off",
|
|
2299
|
+
"sonarjs/no-dead-store": "off",
|
|
2300
|
+
"sonarjs/public-static-readonly": "off",
|
|
2301
|
+
"sonarjs/code-eval": "off",
|
|
2302
|
+
"sonarjs/no-misleading-array-reverse": "off",
|
|
2303
|
+
"sonarjs/fixme-tag": "off",
|
|
2304
|
+
"sonarjs/argument-type": "off",
|
|
2305
|
+
"sonarjs/constructor-for-side-effects": "off",
|
|
2306
|
+
"sonarjs/no-useless-intersection": "off",
|
|
2307
|
+
"sonarjs/no-empty-test-file": "off",
|
|
2308
|
+
"sonarjs/prefer-default-last": "off",
|
|
2309
|
+
"sonarjs/prefer-promise-shorthand": "off",
|
|
2310
|
+
"sonarjs/no-unsafe-unzip": "off",
|
|
2311
|
+
"sonarjs/no-nested-assignment": "off",
|
|
2312
|
+
"sonarjs/generator-without-yield": "off",
|
|
2313
|
+
"sonarjs/no-try-promise": "off",
|
|
2314
|
+
"sonarjs/single-character-alternation": "off",
|
|
2315
|
+
"sonarjs/class-name": "off",
|
|
2316
|
+
"sonarjs/no-hardcoded-secrets": "off",
|
|
2317
|
+
"sonarjs/regex-complexity": "off",
|
|
2318
|
+
"sonarjs/post-message": "off",
|
|
2319
|
+
"sonarjs/link-with-target-blank": "off",
|
|
2320
|
+
"sonarjs/duplicates-in-character-class": "off",
|
|
2321
|
+
"sonarjs/arguments-order": "off",
|
|
2322
|
+
"sonarjs/empty-string-repetition": "off",
|
|
2323
|
+
"sonarjs/table-header": "off",
|
|
2324
|
+
"sonarjs/no-implicit-global": "off",
|
|
2325
|
+
"sonarjs/no-control-regex": "off",
|
|
1816
2326
|
},
|
|
1817
2327
|
},
|
|
1818
2328
|
{
|
|
@@ -1903,7 +2413,7 @@ export default [
|
|
|
1903
2413
|
},
|
|
1904
2414
|
{
|
|
1905
2415
|
plugins: {
|
|
1906
|
-
react:
|
|
2416
|
+
react: plugin0008,
|
|
1907
2417
|
},
|
|
1908
2418
|
settings: {
|
|
1909
2419
|
react: {
|
|
@@ -1938,7 +2448,7 @@ export default [
|
|
|
1938
2448
|
},
|
|
1939
2449
|
{
|
|
1940
2450
|
plugins: {
|
|
1941
|
-
"react-hooks":
|
|
2451
|
+
"react-hooks": plugin0009,
|
|
1942
2452
|
},
|
|
1943
2453
|
rules: {
|
|
1944
2454
|
"react-hooks/rules-of-hooks": "error",
|
|
@@ -1947,7 +2457,7 @@ export default [
|
|
|
1947
2457
|
},
|
|
1948
2458
|
{
|
|
1949
2459
|
plugins: {
|
|
1950
|
-
"import-esm":
|
|
2460
|
+
"import-esm": plugin0010,
|
|
1951
2461
|
},
|
|
1952
2462
|
rules: {
|
|
1953
2463
|
"import-esm/explicit-extension": "error",
|
|
@@ -1958,18 +2468,18 @@ export default [
|
|
|
1958
2468
|
globals: { ...globals.mocha, cy: false, Cypress: false, expect: false, assert: false, chai: false },
|
|
1959
2469
|
},
|
|
1960
2470
|
plugins: {
|
|
1961
|
-
cypress:
|
|
2471
|
+
cypress: plugin0011,
|
|
1962
2472
|
},
|
|
1963
2473
|
rules: {
|
|
1964
|
-
"cypress/no-assigning-return-values": "warn",
|
|
1965
|
-
"cypress/no-unnecessary-waiting": "warn",
|
|
1966
2474
|
"cypress/no-async-tests": "error",
|
|
2475
|
+
"cypress/no-unnecessary-waiting": "warn",
|
|
2476
|
+
"cypress/no-assigning-return-values": "warn",
|
|
1967
2477
|
"cypress/unsafe-to-chain-command": "warn",
|
|
1968
2478
|
},
|
|
1969
2479
|
},
|
|
1970
2480
|
{
|
|
1971
2481
|
plugins: {
|
|
1972
|
-
"chai-friendly":
|
|
2482
|
+
"chai-friendly": plugin0012,
|
|
1973
2483
|
},
|
|
1974
2484
|
rules: {
|
|
1975
2485
|
"no-unused-expressions": "off",
|
|
@@ -1988,4 +2498,22 @@ export default [
|
|
|
1988
2498
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
1989
2499
|
},
|
|
1990
2500
|
},
|
|
2501
|
+
{
|
|
2502
|
+
plugins: {
|
|
2503
|
+
"no-only-tests": plugin0013,
|
|
2504
|
+
},
|
|
2505
|
+
rules: {
|
|
2506
|
+
"no-only-tests/no-only-tests": [
|
|
2507
|
+
"error",
|
|
2508
|
+
{
|
|
2509
|
+
block: [
|
|
2510
|
+
"fixture",
|
|
2511
|
+
],
|
|
2512
|
+
focus: [
|
|
2513
|
+
"only",
|
|
2514
|
+
],
|
|
2515
|
+
},
|
|
2516
|
+
],
|
|
2517
|
+
},
|
|
2518
|
+
},
|
|
1991
2519
|
];
|