@gooddata/eslint-config 11.19.0-alpha.0 → 11.19.0-alpha.10
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/LICENSE +7 -0
- package/PACKAGES_V8.md +26 -0
- package/PACKAGES_V9.md +28 -0
- package/PACKAGES_V9_OXLINT.md +28 -0
- package/README.md +135 -35
- package/dist/base.d.ts +12 -0
- package/dist/base.js +1869 -0
- package/dist/base.json +441 -98
- package/dist/browser-esm.d.ts +12 -0
- package/dist/browser-esm.js +1889 -0
- package/dist/browser-esm.json +442 -99
- package/dist/browser.d.ts +12 -0
- package/dist/browser.js +1874 -0
- package/dist/browser.json +441 -98
- package/dist/esm-react-cypress.d.ts +12 -0
- package/dist/esm-react-cypress.js +1991 -0
- package/dist/esm-react-cypress.json +454 -101
- package/dist/esm-react-vitest-storybook.d.ts +12 -0
- package/dist/esm-react-vitest-storybook.js +2013 -0
- package/dist/esm-react-vitest-storybook.json +480 -100
- package/dist/esm-react-vitest.d.ts +12 -0
- package/dist/esm-react-vitest.js +1979 -0
- package/dist/esm-react-vitest.json +463 -101
- package/dist/esm-react.d.ts +12 -0
- package/dist/esm-react.js +1935 -0
- package/dist/esm-react.json +440 -99
- package/dist/esm-vitest.d.ts +12 -0
- package/dist/esm-vitest.js +1928 -0
- package/dist/esm-vitest.json +465 -101
- package/dist/esm.d.ts +12 -0
- package/dist/esm.js +1884 -0
- package/dist/esm.json +442 -99
- package/dist/oxlint-base.d.ts +12 -0
- package/dist/oxlint-base.js +1869 -0
- package/dist/oxlint-browser-esm.d.ts +12 -0
- package/dist/oxlint-browser-esm.js +1889 -0
- package/dist/oxlint-browser.d.ts +12 -0
- package/dist/oxlint-browser.js +1874 -0
- package/dist/oxlint-esm-react-cypress.d.ts +12 -0
- package/dist/oxlint-esm-react-cypress.js +1991 -0
- package/dist/oxlint-esm-react-vitest-storybook.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest-storybook.js +2013 -0
- package/dist/oxlint-esm-react-vitest.d.ts +12 -0
- package/dist/oxlint-esm-react-vitest.js +1979 -0
- package/dist/oxlint-esm-react.d.ts +12 -0
- package/dist/oxlint-esm-react.js +1935 -0
- package/dist/oxlint-esm-vitest.d.ts +12 -0
- package/dist/oxlint-esm-vitest.js +1928 -0
- package/dist/oxlint-esm.d.ts +12 -0
- package/dist/oxlint-esm.js +1884 -0
- package/dist/oxlint-react-cypress.d.ts +12 -0
- package/dist/oxlint-react-cypress.js +1982 -0
- package/dist/oxlint-react-vitest.d.ts +12 -0
- package/dist/oxlint-react-vitest.js +1970 -0
- package/dist/oxlint-react.d.ts +12 -0
- package/dist/oxlint-react.js +1926 -0
- package/dist/oxlint-vitest.d.ts +12 -0
- package/dist/oxlint-vitest.js +1913 -0
- package/dist/react-cypress.d.ts +12 -0
- package/dist/react-cypress.js +1982 -0
- package/dist/react-cypress.json +453 -100
- package/dist/react-vitest.d.ts +12 -0
- package/dist/react-vitest.js +1970 -0
- package/dist/react-vitest.json +462 -100
- package/dist/react.d.ts +12 -0
- package/dist/react.js +1926 -0
- package/dist/react.json +438 -97
- package/dist/vitest.d.ts +12 -0
- package/dist/vitest.js +1913 -0
- package/dist/vitest.json +464 -100
- package/package.json +122 -48
- package/dist/tsOverride.cjs +0 -23
|
@@ -2,26 +2,74 @@
|
|
|
2
2
|
"plugins": [
|
|
3
3
|
"header",
|
|
4
4
|
"no-barrel-files",
|
|
5
|
-
"import",
|
|
6
|
-
"no-only-tests",
|
|
5
|
+
"import-x",
|
|
7
6
|
"sonarjs",
|
|
8
7
|
"react",
|
|
9
8
|
"react-hooks",
|
|
10
9
|
"import-esm",
|
|
11
10
|
"cypress",
|
|
12
|
-
"chai-friendly"
|
|
13
|
-
|
|
14
|
-
"extends": [
|
|
15
|
-
"eslint:recommended",
|
|
16
|
-
"plugin:import/errors",
|
|
17
|
-
"plugin:prettier/recommended",
|
|
18
|
-
"plugin:regexp/recommended",
|
|
19
|
-
"plugin:sonarjs/recommended-legacy",
|
|
20
|
-
"plugin:react-hooks/recommended",
|
|
21
|
-
"plugin:import-esm/recommended",
|
|
22
|
-
"plugin:cypress/recommended"
|
|
11
|
+
"chai-friendly",
|
|
12
|
+
"no-only-tests"
|
|
23
13
|
],
|
|
24
14
|
"rules": {
|
|
15
|
+
"constructor-super": "error",
|
|
16
|
+
"for-direction": "error",
|
|
17
|
+
"getter-return": "error",
|
|
18
|
+
"no-async-promise-executor": "error",
|
|
19
|
+
"no-case-declarations": "error",
|
|
20
|
+
"no-class-assign": "error",
|
|
21
|
+
"no-compare-neg-zero": "error",
|
|
22
|
+
"no-cond-assign": "error",
|
|
23
|
+
"no-const-assign": "error",
|
|
24
|
+
"no-constant-binary-expression": "error",
|
|
25
|
+
"no-constant-condition": "error",
|
|
26
|
+
"no-control-regex": "error",
|
|
27
|
+
"no-debugger": "error",
|
|
28
|
+
"no-delete-var": 2,
|
|
29
|
+
"no-dupe-args": "error",
|
|
30
|
+
"no-dupe-class-members": "error",
|
|
31
|
+
"no-dupe-else-if": "error",
|
|
32
|
+
"no-dupe-keys": "error",
|
|
33
|
+
"no-duplicate-case": "error",
|
|
34
|
+
"no-empty": "error",
|
|
35
|
+
"no-empty-character-class": "error",
|
|
36
|
+
"no-empty-pattern": "error",
|
|
37
|
+
"no-empty-static-block": "error",
|
|
38
|
+
"no-ex-assign": "error",
|
|
39
|
+
"no-fallthrough": "error",
|
|
40
|
+
"no-func-assign": "error",
|
|
41
|
+
"no-global-assign": "error",
|
|
42
|
+
"no-import-assign": "error",
|
|
43
|
+
"no-invalid-regexp": "error",
|
|
44
|
+
"no-irregular-whitespace": "error",
|
|
45
|
+
"no-loss-of-precision": "error",
|
|
46
|
+
"no-misleading-character-class": "error",
|
|
47
|
+
"no-new-native-nonconstructor": "error",
|
|
48
|
+
"no-nonoctal-decimal-escape": "error",
|
|
49
|
+
"no-obj-calls": "error",
|
|
50
|
+
"no-octal": "error",
|
|
51
|
+
"no-prototype-builtins": "error",
|
|
52
|
+
"no-redeclare": "error",
|
|
53
|
+
"no-regex-spaces": "error",
|
|
54
|
+
"no-self-assign": "error",
|
|
55
|
+
"no-setter-return": "error",
|
|
56
|
+
"no-shadow-restricted-names": "error",
|
|
57
|
+
"no-sparse-arrays": "error",
|
|
58
|
+
"no-this-before-super": "error",
|
|
59
|
+
"no-undef": "error",
|
|
60
|
+
"no-unreachable": "error",
|
|
61
|
+
"no-unsafe-finally": "error",
|
|
62
|
+
"no-unsafe-negation": "error",
|
|
63
|
+
"no-unsafe-optional-chaining": "error",
|
|
64
|
+
"no-unused-labels": "error",
|
|
65
|
+
"no-unused-private-class-members": "error",
|
|
66
|
+
"no-unused-vars": "error",
|
|
67
|
+
"no-useless-backreference": "error",
|
|
68
|
+
"no-useless-catch": "error",
|
|
69
|
+
"no-with": "error",
|
|
70
|
+
"require-yield": "error",
|
|
71
|
+
"use-isnan": "error",
|
|
72
|
+
"valid-typeof": "error",
|
|
25
73
|
"no-console": [
|
|
26
74
|
2,
|
|
27
75
|
{
|
|
@@ -60,6 +108,13 @@
|
|
|
60
108
|
],
|
|
61
109
|
"message": "Default import from React is not allowed. Use named imports instead."
|
|
62
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"name": "react-dom",
|
|
113
|
+
"importNames": [
|
|
114
|
+
"default"
|
|
115
|
+
],
|
|
116
|
+
"message": "Default import from React DOM is not allowed. Use named imports instead."
|
|
117
|
+
},
|
|
63
118
|
{
|
|
64
119
|
"name": "@gooddata/sdk-ui-kit",
|
|
65
120
|
"importNames": [
|
|
@@ -567,6 +622,10 @@
|
|
|
567
622
|
{
|
|
568
623
|
"selector": "MemberExpression[object.name='React']",
|
|
569
624
|
"message": "Do not use `React.*`. Use named imports instead."
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"selector": "MemberExpression[object.name='ReactDOM']",
|
|
628
|
+
"message": "Do not use `ReactDOM.*`. Use named imports instead."
|
|
570
629
|
}
|
|
571
630
|
],
|
|
572
631
|
"sort-imports": [
|
|
@@ -586,16 +645,7 @@
|
|
|
586
645
|
}
|
|
587
646
|
],
|
|
588
647
|
"no-extra-boolean-cast": "error",
|
|
589
|
-
"no-unexpected-multiline":
|
|
590
|
-
"no-warning-comments": [
|
|
591
|
-
"warn",
|
|
592
|
-
{
|
|
593
|
-
"terms": [
|
|
594
|
-
"todo"
|
|
595
|
-
],
|
|
596
|
-
"location": "start"
|
|
597
|
-
}
|
|
598
|
-
],
|
|
648
|
+
"no-unexpected-multiline": 0,
|
|
599
649
|
"header/header": [
|
|
600
650
|
2,
|
|
601
651
|
"line",
|
|
@@ -605,7 +655,15 @@
|
|
|
605
655
|
}
|
|
606
656
|
],
|
|
607
657
|
"no-barrel-files/no-barrel-files": "error",
|
|
608
|
-
"import/
|
|
658
|
+
"import-x/no-unresolved": "error",
|
|
659
|
+
"import-x/named": "error",
|
|
660
|
+
"import-x/namespace": "error",
|
|
661
|
+
"import-x/default": "error",
|
|
662
|
+
"import-x/export": "error",
|
|
663
|
+
"import-x/no-named-as-default": "warn",
|
|
664
|
+
"import-x/no-named-as-default-member": "warn",
|
|
665
|
+
"import-x/no-duplicates": "warn",
|
|
666
|
+
"import-x/order": [
|
|
609
667
|
"error",
|
|
610
668
|
{
|
|
611
669
|
"pathGroups": [
|
|
@@ -640,20 +698,211 @@
|
|
|
640
698
|
"newlines-between": "always"
|
|
641
699
|
}
|
|
642
700
|
],
|
|
643
|
-
"import/no-unassigned-import": "error",
|
|
644
|
-
"
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
"
|
|
656
|
-
"
|
|
701
|
+
"import-x/no-unassigned-import": "error",
|
|
702
|
+
"sonarjs/function-name": "off",
|
|
703
|
+
"sonarjs/max-lines": "off",
|
|
704
|
+
"sonarjs/no-tab": "off",
|
|
705
|
+
"sonarjs/variable-name": "off",
|
|
706
|
+
"sonarjs/comment-regex": "off",
|
|
707
|
+
"sonarjs/elseif-without-else": "off",
|
|
708
|
+
"sonarjs/no-fallthrough": "error",
|
|
709
|
+
"sonarjs/nested-control-flow": "off",
|
|
710
|
+
"sonarjs/too-many-break-or-continue-in-loop": "off",
|
|
711
|
+
"sonarjs/max-lines-per-function": "off",
|
|
712
|
+
"sonarjs/no-nested-incdec": "off",
|
|
713
|
+
"sonarjs/no-equals-in-for-termination": "error",
|
|
714
|
+
"sonarjs/no-extra-arguments": "error",
|
|
715
|
+
"sonarjs/no-collapsible-if": "off",
|
|
716
|
+
"sonarjs/expression-complexity": "off",
|
|
717
|
+
"sonarjs/no-redundant-parentheses": "off",
|
|
718
|
+
"sonarjs/no-labels": "error",
|
|
719
|
+
"sonarjs/no-redundant-boolean": "error",
|
|
720
|
+
"sonarjs/prefer-single-boolean-return": "error",
|
|
721
|
+
"sonarjs/unused-import": "error",
|
|
722
|
+
"sonarjs/useless-string-operation": "off",
|
|
723
|
+
"sonarjs/no-unused-function-argument": "off",
|
|
724
|
+
"sonarjs/no-case-label-in-switch": "error",
|
|
725
|
+
"sonarjs/no-parameter-reassignment": "error",
|
|
726
|
+
"sonarjs/prefer-while": "error",
|
|
727
|
+
"sonarjs/no-sonar-comments": "off",
|
|
728
|
+
"sonarjs/no-small-switch": "error",
|
|
729
|
+
"sonarjs/no-hardcoded-ip": "error",
|
|
730
|
+
"sonarjs/label-position": "error",
|
|
731
|
+
"sonarjs/file-header": "off",
|
|
732
|
+
"sonarjs/call-argument-line": "error",
|
|
733
|
+
"sonarjs/max-switch-cases": "error",
|
|
734
|
+
"sonarjs/prefer-immediate-return": "off",
|
|
735
|
+
"sonarjs/function-inside-loop": "error",
|
|
736
|
+
"sonarjs/no-variable-usage-before-declaration": "off",
|
|
737
|
+
"sonarjs/future-reserved-words": "error",
|
|
738
|
+
"sonarjs/array-constructor": "off",
|
|
739
|
+
"sonarjs/bitwise-operators": "error",
|
|
740
|
+
"sonarjs/no-function-declaration-in-block": "off",
|
|
741
|
+
"sonarjs/no-primitive-wrappers": "error",
|
|
742
|
+
"sonarjs/for-in": "off",
|
|
743
|
+
"sonarjs/cyclomatic-complexity": "off",
|
|
744
|
+
"sonarjs/no-identical-expressions": "error",
|
|
745
|
+
"sonarjs/no-nested-switch": "off",
|
|
746
|
+
"sonarjs/no-identical-conditions": "error",
|
|
747
|
+
"sonarjs/no-duplicated-branches": "error",
|
|
748
|
+
"sonarjs/misplaced-loop-counter": "error",
|
|
749
|
+
"sonarjs/sql-queries": "error",
|
|
750
|
+
"sonarjs/insecure-cookie": "error",
|
|
751
|
+
"sonarjs/no-useless-increment": "error",
|
|
752
|
+
"sonarjs/no-undefined-assignment": "off",
|
|
753
|
+
"sonarjs/no-wildcard-import": "off",
|
|
754
|
+
"sonarjs/for-loop-increment-sign": "error",
|
|
755
|
+
"sonarjs/cookies": "off",
|
|
756
|
+
"sonarjs/null-dereference": "error",
|
|
757
|
+
"sonarjs/updated-loop-counter": "error",
|
|
758
|
+
"sonarjs/block-scoped-var": "error",
|
|
759
|
+
"sonarjs/no-built-in-override": "off",
|
|
760
|
+
"sonarjs/prefer-object-literal": "off",
|
|
761
|
+
"sonarjs/no-gratuitous-expressions": "error",
|
|
762
|
+
"sonarjs/file-uploads": "error",
|
|
763
|
+
"sonarjs/file-permissions": "error",
|
|
764
|
+
"sonarjs/no-empty-character-class": "error",
|
|
765
|
+
"sonarjs/no-unenclosed-multiline-block": "error",
|
|
766
|
+
"sonarjs/index-of-compare-to-positive-number": "error",
|
|
767
|
+
"sonarjs/no-useless-catch": "error",
|
|
768
|
+
"sonarjs/xml-parser-xxe": "error",
|
|
769
|
+
"sonarjs/non-existent-operator": "error",
|
|
770
|
+
"sonarjs/web-sql-database": "off",
|
|
771
|
+
"sonarjs/no-array-delete": "error",
|
|
772
|
+
"sonarjs/no-incomplete-assertions": "error",
|
|
773
|
+
"sonarjs/no-global-this": "error",
|
|
774
|
+
"sonarjs/new-operator-misuse": "error",
|
|
775
|
+
"sonarjs/no-delete-var": "error",
|
|
776
|
+
"sonarjs/strings-comparison": "off",
|
|
777
|
+
"sonarjs/file-name-differ-from-class": "off",
|
|
778
|
+
"sonarjs/cookie-no-httponly": "error",
|
|
779
|
+
"sonarjs/no-incorrect-string-concat": "off",
|
|
780
|
+
"sonarjs/inverted-assertion-arguments": "error",
|
|
781
|
+
"sonarjs/shorthand-property-grouping": "off",
|
|
782
|
+
"sonarjs/updated-const-var": "error",
|
|
783
|
+
"sonarjs/arguments-usage": "off",
|
|
784
|
+
"sonarjs/destructuring-assignment-syntax": "off",
|
|
785
|
+
"sonarjs/arrow-function-convention": "off",
|
|
786
|
+
"sonarjs/class-prototype": "off",
|
|
787
|
+
"sonarjs/no-require-or-define": "off",
|
|
788
|
+
"sonarjs/no-associative-arrays": "error",
|
|
789
|
+
"sonarjs/comma-or-logical-or-case": "error",
|
|
790
|
+
"sonarjs/no-redundant-jump": "error",
|
|
791
|
+
"sonarjs/inconsistent-function-call": "error",
|
|
792
|
+
"sonarjs/no-use-of-empty-return-value": "error",
|
|
793
|
+
"sonarjs/enforce-trailing-comma": "off",
|
|
794
|
+
"sonarjs/operation-returning-nan": "off",
|
|
795
|
+
"sonarjs/values-not-convertible-to-numbers": "off",
|
|
796
|
+
"sonarjs/non-number-in-arithmetic-expression": "off",
|
|
797
|
+
"sonarjs/in-operator-type-error": "error",
|
|
798
|
+
"sonarjs/declarations-in-global-scope": "off",
|
|
799
|
+
"sonarjs/no-inconsistent-returns": "off",
|
|
800
|
+
"sonarjs/no-reference-error": "off",
|
|
801
|
+
"sonarjs/super-invocation": "error",
|
|
802
|
+
"sonarjs/no-all-duplicated-branches": "error",
|
|
803
|
+
"sonarjs/no-same-line-conditional": "error",
|
|
804
|
+
"sonarjs/conditional-indentation": "off",
|
|
805
|
+
"sonarjs/no-collection-size-mischeck": "error",
|
|
806
|
+
"sonarjs/no-unthrown-error": "error",
|
|
807
|
+
"sonarjs/no-unused-collection": "error",
|
|
808
|
+
"sonarjs/no-for-in-iterable": "off",
|
|
809
|
+
"sonarjs/no-element-overwrite": "error",
|
|
810
|
+
"sonarjs/no-identical-functions": "error",
|
|
811
|
+
"sonarjs/no-empty-collection": "error",
|
|
812
|
+
"sonarjs/no-redundant-assignments": "error",
|
|
813
|
+
"sonarjs/prefer-type-guard": "error",
|
|
814
|
+
"sonarjs/no-return-type-any": "off",
|
|
815
|
+
"sonarjs/no-implicit-dependencies": "off",
|
|
816
|
+
"sonarjs/weak-ssl": "error",
|
|
817
|
+
"sonarjs/no-weak-keys": "error",
|
|
818
|
+
"sonarjs/csrf": "error",
|
|
819
|
+
"sonarjs/production-debug": "error",
|
|
820
|
+
"sonarjs/no-in-misuse": "error",
|
|
821
|
+
"sonarjs/no-duplicate-in-composite": "error",
|
|
822
|
+
"sonarjs/max-union-size": "off",
|
|
823
|
+
"sonarjs/no-nested-template-literals": "error",
|
|
824
|
+
"sonarjs/regular-expr": "off",
|
|
825
|
+
"sonarjs/encryption": "off",
|
|
826
|
+
"sonarjs/hashing": "error",
|
|
827
|
+
"sonarjs/bool-param-default": "off",
|
|
828
|
+
"sonarjs/xpath": "off",
|
|
829
|
+
"sonarjs/sockets": "off",
|
|
830
|
+
"sonarjs/process-argv": "off",
|
|
831
|
+
"sonarjs/standard-input": "off",
|
|
832
|
+
"sonarjs/unverified-certificate": "error",
|
|
833
|
+
"sonarjs/cors": "error",
|
|
834
|
+
"sonarjs/disabled-auto-escaping": "error",
|
|
835
|
+
"sonarjs/no-table-as-layout": "error",
|
|
836
|
+
"sonarjs/table-header-reference": "error",
|
|
837
|
+
"sonarjs/object-alt-content": "error",
|
|
838
|
+
"sonarjs/publicly-writable-directories": "error",
|
|
839
|
+
"sonarjs/unverified-hostname": "error",
|
|
840
|
+
"sonarjs/encryption-secure-mode": "error",
|
|
841
|
+
"sonarjs/no-weak-cipher": "error",
|
|
842
|
+
"sonarjs/no-intrusive-permissions": "error",
|
|
843
|
+
"sonarjs/insecure-jwt-token": "error",
|
|
844
|
+
"sonarjs/x-powered-by": "error",
|
|
845
|
+
"sonarjs/hidden-files": "error",
|
|
846
|
+
"sonarjs/content-length": "error",
|
|
847
|
+
"sonarjs/disabled-resource-integrity": "error",
|
|
848
|
+
"sonarjs/content-security-policy": "error",
|
|
849
|
+
"sonarjs/no-mixed-content": "error",
|
|
850
|
+
"sonarjs/frame-ancestors": "error",
|
|
851
|
+
"sonarjs/no-mime-sniff": "error",
|
|
852
|
+
"sonarjs/no-referrer-policy": "error",
|
|
853
|
+
"sonarjs/strict-transport-security": "error",
|
|
854
|
+
"sonarjs/certificate-transparency": "off",
|
|
855
|
+
"sonarjs/dns-prefetching": "off",
|
|
856
|
+
"sonarjs/confidential-information-logging": "error",
|
|
857
|
+
"sonarjs/no-ip-forward": "error",
|
|
858
|
+
"sonarjs/no-invalid-regexp": "error",
|
|
859
|
+
"sonarjs/unused-named-groups": "error",
|
|
860
|
+
"sonarjs/no-same-argument-assert": "error",
|
|
861
|
+
"sonarjs/unicode-aware-regex": "off",
|
|
862
|
+
"sonarjs/no-misleading-character-class": "error",
|
|
863
|
+
"sonarjs/session-regeneration": "error",
|
|
864
|
+
"sonarjs/test-check-exception": "error",
|
|
865
|
+
"sonarjs/stable-tests": "error",
|
|
866
|
+
"sonarjs/no-empty-after-reluctant": "error",
|
|
867
|
+
"sonarjs/no-code-after-done": "error",
|
|
868
|
+
"sonarjs/disabled-timeout": "error",
|
|
869
|
+
"sonarjs/chai-determinate-assertion": "error",
|
|
870
|
+
"sonarjs/aws-s3-bucket-server-encryption": "off",
|
|
871
|
+
"sonarjs/aws-s3-bucket-insecure-http": "error",
|
|
872
|
+
"sonarjs/aws-s3-bucket-versioning": "error",
|
|
873
|
+
"sonarjs/aws-s3-bucket-granted-access": "error",
|
|
874
|
+
"sonarjs/no-angular-bypass-sanitization": "error",
|
|
875
|
+
"sonarjs/aws-iam-public-access": "error",
|
|
876
|
+
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
877
|
+
"sonarjs/aws-s3-bucket-public-access": "error",
|
|
878
|
+
"sonarjs/no-vue-bypass-sanitization": "off",
|
|
879
|
+
"sonarjs/aws-iam-all-privileges": "error",
|
|
880
|
+
"sonarjs/aws-rds-unencrypted-databases": "error",
|
|
881
|
+
"sonarjs/aws-iam-all-resources-accessible": "off",
|
|
882
|
+
"sonarjs/aws-opensearchservice-domain": "error",
|
|
883
|
+
"sonarjs/aws-iam-privilege-escalation": "error",
|
|
884
|
+
"sonarjs/aws-sagemaker-unencrypted-notebook": "error",
|
|
885
|
+
"sonarjs/aws-restricted-ip-admin-access": "error",
|
|
886
|
+
"sonarjs/no-empty-alternatives": "error",
|
|
887
|
+
"sonarjs/no-regex-spaces": "error",
|
|
888
|
+
"sonarjs/aws-sns-unencrypted-topics": "error",
|
|
889
|
+
"sonarjs/existing-groups": "error",
|
|
890
|
+
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
891
|
+
"sonarjs/aws-sqs-unencrypted-queue": "error",
|
|
892
|
+
"sonarjs/no-empty-group": "error",
|
|
893
|
+
"sonarjs/aws-efs-unencrypted": "error",
|
|
894
|
+
"sonarjs/aws-apigateway-public-api": "error",
|
|
895
|
+
"sonarjs/stateful-regex": "error",
|
|
896
|
+
"sonarjs/single-char-in-character-classes": "error",
|
|
897
|
+
"sonarjs/no-exclusive-tests": "error",
|
|
898
|
+
"sonarjs/hardcoded-secret-signatures": "error",
|
|
899
|
+
"sonarjs/jsx-no-leaked-render": "error",
|
|
900
|
+
"sonarjs/no-hook-setter-in-body": "error",
|
|
901
|
+
"sonarjs/no-uniq-key": "error",
|
|
902
|
+
"sonarjs/no-internal-api-use": "error",
|
|
903
|
+
"sonarjs/no-literal-call": "error",
|
|
904
|
+
"sonarjs/review-blockchain-mnemonic": "error",
|
|
905
|
+
"sonarjs/dynamically-constructed-templates": "error",
|
|
657
906
|
"sonarjs/no-duplicate-string": "off",
|
|
658
907
|
"sonarjs/cognitive-complexity": "warn",
|
|
659
908
|
"sonarjs/todo-tag": "warn",
|
|
@@ -721,8 +970,46 @@
|
|
|
721
970
|
"sonarjs/no-control-regex": "off",
|
|
722
971
|
"no-caller": 2,
|
|
723
972
|
"no-eval": 2,
|
|
724
|
-
"no-delete-var": 2,
|
|
725
973
|
"no-octal-escape": 2,
|
|
974
|
+
"curly": 0,
|
|
975
|
+
"@typescript-eslint/lines-around-comment": 0,
|
|
976
|
+
"@typescript-eslint/quotes": 0,
|
|
977
|
+
"unicorn/template-indent": 0,
|
|
978
|
+
"@typescript-eslint/block-spacing": "off",
|
|
979
|
+
"@typescript-eslint/brace-style": "off",
|
|
980
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
981
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
982
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
983
|
+
"@typescript-eslint/indent": "off",
|
|
984
|
+
"@typescript-eslint/key-spacing": "off",
|
|
985
|
+
"@typescript-eslint/keyword-spacing": "off",
|
|
986
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
|
987
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
988
|
+
"@typescript-eslint/no-extra-semi": "off",
|
|
989
|
+
"@typescript-eslint/object-curly-spacing": "off",
|
|
990
|
+
"@typescript-eslint/semi": "off",
|
|
991
|
+
"@typescript-eslint/space-before-blocks": "off",
|
|
992
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
993
|
+
"@typescript-eslint/space-infix-ops": "off",
|
|
994
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
|
995
|
+
"react/jsx-child-element-spacing": "off",
|
|
996
|
+
"react/jsx-closing-bracket-location": "off",
|
|
997
|
+
"react/jsx-closing-tag-location": "off",
|
|
998
|
+
"react/jsx-curly-newline": "off",
|
|
999
|
+
"react/jsx-curly-spacing": "off",
|
|
1000
|
+
"react/jsx-equals-spacing": "off",
|
|
1001
|
+
"react/jsx-first-prop-new-line": "off",
|
|
1002
|
+
"react/jsx-indent": "off",
|
|
1003
|
+
"react/jsx-indent-props": "off",
|
|
1004
|
+
"react/jsx-max-props-per-line": "off",
|
|
1005
|
+
"react/jsx-newline": "off",
|
|
1006
|
+
"react/jsx-one-expression-per-line": "off",
|
|
1007
|
+
"react/jsx-props-no-multi-spaces": "off",
|
|
1008
|
+
"react/jsx-tag-spacing": "off",
|
|
1009
|
+
"react/jsx-wrap-multilines": "off",
|
|
1010
|
+
"unicorn/empty-brace-spaces": "off",
|
|
1011
|
+
"unicorn/no-nested-ternary": "off",
|
|
1012
|
+
"unicorn/number-literal-case": "off",
|
|
726
1013
|
"react/no-danger": "error",
|
|
727
1014
|
"react/prop-types": "off",
|
|
728
1015
|
"react/function-component-definition": [
|
|
@@ -748,11 +1035,24 @@
|
|
|
748
1035
|
"react/react-in-jsx-scope": "off",
|
|
749
1036
|
"react-hooks/rules-of-hooks": "error",
|
|
750
1037
|
"react-hooks/exhaustive-deps": "error",
|
|
1038
|
+
"import-esm/explicit-extension": "error",
|
|
1039
|
+
"cypress/no-async-tests": "error",
|
|
751
1040
|
"cypress/no-unnecessary-waiting": "warn",
|
|
752
1041
|
"cypress/no-assigning-return-values": "warn",
|
|
753
1042
|
"cypress/unsafe-to-chain-command": "warn",
|
|
754
1043
|
"no-unused-expressions": "off",
|
|
755
|
-
"chai-friendly/no-unused-expressions": "error"
|
|
1044
|
+
"chai-friendly/no-unused-expressions": "error",
|
|
1045
|
+
"no-only-tests/no-only-tests": [
|
|
1046
|
+
"error",
|
|
1047
|
+
{
|
|
1048
|
+
"block": [
|
|
1049
|
+
"fixture"
|
|
1050
|
+
],
|
|
1051
|
+
"focus": [
|
|
1052
|
+
"only"
|
|
1053
|
+
]
|
|
1054
|
+
}
|
|
1055
|
+
]
|
|
756
1056
|
},
|
|
757
1057
|
"overrides": [
|
|
758
1058
|
{
|
|
@@ -784,6 +1084,13 @@
|
|
|
784
1084
|
],
|
|
785
1085
|
"message": "Default import from React is not allowed. Use named imports instead."
|
|
786
1086
|
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "react-dom",
|
|
1089
|
+
"importNames": [
|
|
1090
|
+
"default"
|
|
1091
|
+
],
|
|
1092
|
+
"message": "Default import from React DOM is not allowed. Use named imports instead."
|
|
1093
|
+
},
|
|
787
1094
|
{
|
|
788
1095
|
"name": "@gooddata/sdk-ui-kit",
|
|
789
1096
|
"importNames": [
|
|
@@ -1295,19 +1602,63 @@
|
|
|
1295
1602
|
}
|
|
1296
1603
|
},
|
|
1297
1604
|
{
|
|
1298
|
-
"parser": "@typescript-eslint/parser",
|
|
1299
1605
|
"files": [
|
|
1300
|
-
"
|
|
1301
|
-
"
|
|
1606
|
+
"**/eslint.config.ts",
|
|
1607
|
+
"**/eslint.config.js"
|
|
1302
1608
|
],
|
|
1303
|
-
"
|
|
1304
|
-
"
|
|
1609
|
+
"rules": {
|
|
1610
|
+
"no-restricted-exports": "off"
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"files": [
|
|
1615
|
+
"**/*.ts",
|
|
1616
|
+
"**/*.tsx",
|
|
1617
|
+
"**/*.mts",
|
|
1618
|
+
"**/*.cts"
|
|
1305
1619
|
],
|
|
1306
|
-
"parserOptions": {
|
|
1307
|
-
"ecmaVersion": 2022,
|
|
1308
|
-
"sourceType": "module"
|
|
1309
|
-
},
|
|
1310
1620
|
"rules": {
|
|
1621
|
+
"constructor-super": "off",
|
|
1622
|
+
"getter-return": "off",
|
|
1623
|
+
"no-class-assign": "off",
|
|
1624
|
+
"no-const-assign": "off",
|
|
1625
|
+
"no-dupe-args": "off",
|
|
1626
|
+
"no-dupe-class-members": "off",
|
|
1627
|
+
"no-dupe-keys": "off",
|
|
1628
|
+
"no-func-assign": "off",
|
|
1629
|
+
"no-import-assign": "off",
|
|
1630
|
+
"no-new-native-nonconstructor": "off",
|
|
1631
|
+
"no-new-symbol": "off",
|
|
1632
|
+
"no-obj-calls": "off",
|
|
1633
|
+
"no-redeclare": "off",
|
|
1634
|
+
"no-setter-return": "off",
|
|
1635
|
+
"no-this-before-super": "off",
|
|
1636
|
+
"no-undef": "off",
|
|
1637
|
+
"no-unreachable": "off",
|
|
1638
|
+
"no-unsafe-negation": "off",
|
|
1639
|
+
"no-var": "error",
|
|
1640
|
+
"no-with": "off",
|
|
1641
|
+
"prefer-const": "error",
|
|
1642
|
+
"prefer-rest-params": "error",
|
|
1643
|
+
"prefer-spread": "error",
|
|
1644
|
+
"no-array-constructor": "off",
|
|
1645
|
+
"no-unused-expressions": "off",
|
|
1646
|
+
"no-unused-vars": "off",
|
|
1647
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
1648
|
+
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
1649
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
1650
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
1651
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
1652
|
+
"@typescript-eslint/no-namespace": "error",
|
|
1653
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
1654
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
1655
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
1656
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
1657
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "error",
|
|
1658
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
1659
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
1660
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
1661
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
1311
1662
|
"@typescript-eslint/explicit-function-return-type": 0,
|
|
1312
1663
|
"@typescript-eslint/no-use-before-define": 0,
|
|
1313
1664
|
"@typescript-eslint/no-empty-function": 0,
|
|
@@ -1406,17 +1757,53 @@
|
|
|
1406
1757
|
"fixStyle": "inline-type-imports"
|
|
1407
1758
|
}
|
|
1408
1759
|
]
|
|
1760
|
+
},
|
|
1761
|
+
"parser": "@typescript-eslint/parser",
|
|
1762
|
+
"parserOptions": {
|
|
1763
|
+
"ecmaVersion": 2022,
|
|
1764
|
+
"sourceType": "module",
|
|
1765
|
+
"projectService": true
|
|
1409
1766
|
}
|
|
1410
1767
|
},
|
|
1411
1768
|
{
|
|
1412
|
-
"parser": "@typescript-eslint/parser",
|
|
1413
1769
|
"files": [
|
|
1414
1770
|
"**/*.ts",
|
|
1771
|
+
"**/*.cts",
|
|
1772
|
+
"**/*.mts",
|
|
1415
1773
|
"**/*.tsx"
|
|
1416
1774
|
],
|
|
1417
|
-
"
|
|
1418
|
-
"
|
|
1419
|
-
|
|
1775
|
+
"settings": {
|
|
1776
|
+
"import-x/extensions": [
|
|
1777
|
+
".ts",
|
|
1778
|
+
".cts",
|
|
1779
|
+
".mts",
|
|
1780
|
+
".tsx",
|
|
1781
|
+
".js",
|
|
1782
|
+
".jsx",
|
|
1783
|
+
".mjs",
|
|
1784
|
+
".cjs"
|
|
1785
|
+
],
|
|
1786
|
+
"import-x/external-module-folders": [
|
|
1787
|
+
"node_modules",
|
|
1788
|
+
"node_modules/@types"
|
|
1789
|
+
],
|
|
1790
|
+
"import-x/parsers": {
|
|
1791
|
+
"@typescript-eslint/parser": [
|
|
1792
|
+
".ts",
|
|
1793
|
+
".cts",
|
|
1794
|
+
".mts",
|
|
1795
|
+
".tsx"
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
"import-x/resolver": {
|
|
1799
|
+
"typescript": {
|
|
1800
|
+
"alwaysTryTypes": true
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"rules": {
|
|
1805
|
+
"import-x/named": "off"
|
|
1806
|
+
}
|
|
1420
1807
|
},
|
|
1421
1808
|
{
|
|
1422
1809
|
"files": [
|
|
@@ -1444,53 +1831,6 @@
|
|
|
1444
1831
|
"sonarjs/no-identical-functions": "off"
|
|
1445
1832
|
}
|
|
1446
1833
|
},
|
|
1447
|
-
{
|
|
1448
|
-
"parser": "@typescript-eslint/parser",
|
|
1449
|
-
"files": [
|
|
1450
|
-
"**/*.ts",
|
|
1451
|
-
"**/*.tsx"
|
|
1452
|
-
],
|
|
1453
|
-
"parserOptions": {
|
|
1454
|
-
"ecmaVersion": 2022,
|
|
1455
|
-
"sourceType": "module"
|
|
1456
|
-
},
|
|
1457
|
-
"plugins": [
|
|
1458
|
-
"tsdoc",
|
|
1459
|
-
"jsdoc"
|
|
1460
|
-
],
|
|
1461
|
-
"settings": {
|
|
1462
|
-
"jsdoc": {
|
|
1463
|
-
"mode": "typescript"
|
|
1464
|
-
}
|
|
1465
|
-
},
|
|
1466
|
-
"rules": {
|
|
1467
|
-
"tsdoc/syntax": "error",
|
|
1468
|
-
"jsdoc/require-param": [
|
|
1469
|
-
"error",
|
|
1470
|
-
{
|
|
1471
|
-
"contexts": [
|
|
1472
|
-
{
|
|
1473
|
-
"context": "FunctionDeclaration",
|
|
1474
|
-
"comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
|
|
1475
|
-
},
|
|
1476
|
-
{
|
|
1477
|
-
"context": "FunctionExpression",
|
|
1478
|
-
"comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"context": "ArrowFunctionExpression",
|
|
1482
|
-
"comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"context": "MethodDefinition",
|
|
1486
|
-
"comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
|
|
1487
|
-
}
|
|
1488
|
-
]
|
|
1489
|
-
}
|
|
1490
|
-
],
|
|
1491
|
-
"jsdoc/require-param-type": "off"
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
1834
|
{
|
|
1495
1835
|
"parser": "@typescript-eslint/parser",
|
|
1496
1836
|
"files": [
|
|
@@ -1503,6 +1843,12 @@
|
|
|
1503
1843
|
}
|
|
1504
1844
|
],
|
|
1505
1845
|
"settings": {
|
|
1846
|
+
"import-x/extensions": [
|
|
1847
|
+
".js",
|
|
1848
|
+
".jsx",
|
|
1849
|
+
".mjs",
|
|
1850
|
+
".cjs"
|
|
1851
|
+
],
|
|
1506
1852
|
"react": {
|
|
1507
1853
|
"version": "detect"
|
|
1508
1854
|
}
|
|
@@ -1514,7 +1860,14 @@
|
|
|
1514
1860
|
},
|
|
1515
1861
|
"ignorePatterns": [
|
|
1516
1862
|
"**/dist/**/*.*",
|
|
1517
|
-
"**/esm/**/*.*"
|
|
1863
|
+
"**/esm/**/*.*",
|
|
1864
|
+
"**/node_modules/**/*.*",
|
|
1865
|
+
"**/ci/results/**",
|
|
1866
|
+
"**/__version.ts",
|
|
1867
|
+
"**/cypress/results/**",
|
|
1868
|
+
"**/cypress/screenshots/**",
|
|
1869
|
+
"**/cypress/videos/**",
|
|
1870
|
+
"**/temp/**"
|
|
1518
1871
|
],
|
|
1519
1872
|
"parserOptions": {
|
|
1520
1873
|
"ecmaVersion": 2022,
|