@gooddata/oxlint-config 11.57.0-alpha.0 → 11.57.0-alpha.2

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.md CHANGED
@@ -16,7 +16,8 @@ This table shows which packages are required for each configuration.
16
16
  | eslint-plugin-storybook | | | | | | | 10.5.6 | | | | | | | | |
17
17
  | eslint-plugin-testing-library | | | | | | | | | 7.16.2 | | 7.16.2 | | | | 7.16.2 |
18
18
  | oxlint | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 | ^1.51.0 |
19
- | oxlint-tsgolint | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 | 0.15.0 |
19
+ | oxlint-plugin-eslint | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 | 1.82.0 |
20
+ | oxlint-tsgolint | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 | 0.18.1 |
20
21
  | react | | | | | | | 19.1.1 | | | | | | | | |
21
22
  | react-dom | | | | | | | 19.1.1 | | | | | | | | |
22
23
  | storybook | | | | | | | ^10.5.6 | | | | | | | | |
package/dist/base.json CHANGED
@@ -7,6 +7,10 @@
7
7
  "import"
8
8
  ],
9
9
  "jsPlugins": [
10
+ {
11
+ "name": "eslint-js",
12
+ "specifier": "oxlint-plugin-eslint"
13
+ },
10
14
  {
11
15
  "name": "headers",
12
16
  "specifier": "eslint-plugin-headers"
@@ -47,7 +51,6 @@
47
51
  "no-constant-condition": "error",
48
52
  "no-control-regex": "error",
49
53
  "no-debugger": "error",
50
- "no-dupe-args": "error",
51
54
  "no-dupe-class-members": "error",
52
55
  "no-dupe-else-if": "error",
53
56
  "no-dupe-keys": "error",
@@ -68,7 +71,6 @@
68
71
  "no-new-native-nonconstructor": "error",
69
72
  "no-nonoctal-decimal-escape": "error",
70
73
  "no-obj-calls": "error",
71
- "no-octal": "error",
72
74
  "no-prototype-builtins": "error",
73
75
  "no-redeclare": "error",
74
76
  "no-regex-spaces": "error",
@@ -627,8 +629,30 @@
627
629
  }
628
630
  ],
629
631
  "no-extra-boolean-cast": "error",
630
- "no-restricted-exports": [
631
- 2,
632
+ "no-caller": "error",
633
+ "no-eval": "error",
634
+ "no-delete-var": "error",
635
+ "no-duplicate-imports": "error",
636
+ "prefer-const": "off",
637
+ "eslint-js/no-duplicate-imports": [
638
+ "error",
639
+ {
640
+ "includeExports": true
641
+ }
642
+ ],
643
+ "eslint-js/no-console": [
644
+ "error",
645
+ {
646
+ "allow": [
647
+ "warn",
648
+ "error"
649
+ ]
650
+ }
651
+ ],
652
+ "eslint-js/no-octal": "error",
653
+ "eslint-js/no-dupe-args": "error",
654
+ "eslint-js/no-restricted-exports": [
655
+ "error",
632
656
  {
633
657
  "restrictDefaultExports": {
634
658
  "direct": true,
@@ -639,12 +663,20 @@
639
663
  }
640
664
  }
641
665
  ],
642
- "no-caller": "error",
643
- "no-eval": "error",
644
- "no-delete-var": "error",
645
- "no-octal-escape": "error",
646
- "no-duplicate-imports": "error",
647
- "prefer-const": "off",
666
+ "eslint-js/no-restricted-syntax": [
667
+ "error",
668
+ {
669
+ "selector": "MemberExpression[object.name='React']",
670
+ "message": "Do not use `React.*`. Use named imports instead."
671
+ },
672
+ {
673
+ "selector": "MemberExpression[object.name='ReactDOM']",
674
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
675
+ }
676
+ ],
677
+ "eslint-js/no-negated-condition": "error",
678
+ "eslint-js/prefer-const": "off",
679
+ "eslint-js/no-octal-escape": "error",
648
680
  "headers/header-format": [
649
681
  "error",
650
682
  {
@@ -2023,10 +2055,53 @@
2023
2055
  "**/eslint.config.ts",
2024
2056
  "**/eslint.config.js",
2025
2057
  "**/vite.config.ts",
2026
- "**/vite.config.js"
2058
+ "**/vite.config.js",
2059
+ "**/vitest.config.ts",
2060
+ "**/vitest.config.js",
2061
+ "**/rolldown.config.ts",
2062
+ "**/rolldown.config.js",
2063
+ "**/playwright.config.ts",
2064
+ "**/playwright.config.js",
2065
+ "**/.dependency-cruiser.ts",
2066
+ "**/.dependency-cruiser.js",
2067
+ "**/.i18nrc.ts",
2068
+ "**/.i18nrc.js"
2027
2069
  ],
2028
2070
  "rules": {
2029
- "no-restricted-exports": "off"
2071
+ "eslint-js/no-restricted-exports": "off"
2072
+ }
2073
+ },
2074
+ {
2075
+ "files": [
2076
+ "**/*.ts",
2077
+ "**/*.tsx",
2078
+ "**/*.mts",
2079
+ "**/*.cts"
2080
+ ],
2081
+ "rules": {
2082
+ "eslint-js/no-restricted-syntax": [
2083
+ "error",
2084
+ {
2085
+ "selector": "MemberExpression[object.name='React']",
2086
+ "message": "Do not use `React.*`. Use named imports instead."
2087
+ },
2088
+ {
2089
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2090
+ "message": "Do not use `React.*` types. Use named imports instead."
2091
+ },
2092
+ {
2093
+ "selector": "ExportNamespaceSpecifier",
2094
+ "message": "Usage of 'export * as …' is forbidden."
2095
+ },
2096
+ {
2097
+ "selector": "ExportAllDeclaration",
2098
+ "message": "Usage of `export * from` is forbidden."
2099
+ },
2100
+ {
2101
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2102
+ "message": "Do not use `import * as ...` from relative paths."
2103
+ }
2104
+ ]
2030
2105
  }
2031
2106
  },
2032
2107
  {
@@ -2041,13 +2116,11 @@
2041
2116
  "getter-return": "off",
2042
2117
  "no-class-assign": "off",
2043
2118
  "no-const-assign": "off",
2044
- "no-dupe-args": "off",
2045
2119
  "no-dupe-class-members": "off",
2046
2120
  "no-dupe-keys": "off",
2047
2121
  "no-func-assign": "off",
2048
2122
  "no-import-assign": "off",
2049
2123
  "no-new-native-nonconstructor": "off",
2050
- "no-new-symbol": "off",
2051
2124
  "no-obj-calls": "off",
2052
2125
  "no-redeclare": "off",
2053
2126
  "no-setter-return": "off",
@@ -2061,7 +2134,6 @@
2061
2134
  "prefer-rest-params": "error",
2062
2135
  "prefer-spread": "error",
2063
2136
  "no-array-constructor": "off",
2064
- "no-unused-expressions": "off",
2065
2137
  "no-unused-vars": "off",
2066
2138
  "@typescript-eslint/no-array-constructor": "error",
2067
2139
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2077,11 +2149,11 @@
2077
2149
  "@typescript-eslint/prefer-as-const": "error",
2078
2150
  "@typescript-eslint/prefer-namespace-keyword": "error",
2079
2151
  "@typescript-eslint/triple-slash-reference": "error",
2080
- "@typescript-eslint/explicit-function-return-type": 0,
2081
- "@typescript-eslint/no-use-before-define": 0,
2082
- "@typescript-eslint/no-empty-function": 0,
2152
+ "@typescript-eslint/explicit-function-return-type": "off",
2153
+ "@typescript-eslint/no-use-before-define": "off",
2154
+ "@typescript-eslint/no-empty-function": "off",
2083
2155
  "@typescript-eslint/no-unused-vars": [
2084
- 2,
2156
+ "error",
2085
2157
  {
2086
2158
  "varsIgnorePattern": "^_.*$",
2087
2159
  "argsIgnorePattern": "^_.*$"
@@ -2120,34 +2192,8 @@
2120
2192
  }
2121
2193
  }
2122
2194
  ],
2123
- "@typescript-eslint/explicit-member-accessibility": "off",
2124
- "@typescript-eslint/interface-name-prefix": "off",
2125
- "@typescript-eslint/member-ordering": "off",
2126
2195
  "@typescript-eslint/no-inferrable-types": "off",
2127
2196
  "@typescript-eslint/no-non-null-assertion": "off",
2128
- "no-restricted-syntax": [
2129
- "error",
2130
- {
2131
- "selector": "MemberExpression[object.name='React']",
2132
- "message": "Do not use `React.*`. Use named imports instead."
2133
- },
2134
- {
2135
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2136
- "message": "Do not use `React.*` types. Use named imports instead."
2137
- },
2138
- {
2139
- "selector": "ExportNamespaceSpecifier",
2140
- "message": "Usage of 'export * as …' is forbidden."
2141
- },
2142
- {
2143
- "selector": "ExportAllDeclaration",
2144
- "message": "Usage of `export * from` is forbidden."
2145
- },
2146
- {
2147
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2148
- "message": "Do not use `import * as ...` from relative paths."
2149
- }
2150
- ],
2151
2197
  "@typescript-eslint/consistent-type-imports": [
2152
2198
  "error",
2153
2199
  {
@@ -7,6 +7,10 @@
7
7
  "import"
8
8
  ],
9
9
  "jsPlugins": [
10
+ {
11
+ "name": "eslint-js",
12
+ "specifier": "oxlint-plugin-eslint"
13
+ },
10
14
  {
11
15
  "name": "headers",
12
16
  "specifier": "eslint-plugin-headers"
@@ -51,7 +55,6 @@
51
55
  "no-constant-condition": "error",
52
56
  "no-control-regex": "error",
53
57
  "no-debugger": "error",
54
- "no-dupe-args": "error",
55
58
  "no-dupe-class-members": "error",
56
59
  "no-dupe-else-if": "error",
57
60
  "no-dupe-keys": "error",
@@ -72,7 +75,6 @@
72
75
  "no-new-native-nonconstructor": "error",
73
76
  "no-nonoctal-decimal-escape": "error",
74
77
  "no-obj-calls": "error",
75
- "no-octal": "error",
76
78
  "no-prototype-builtins": "error",
77
79
  "no-redeclare": "error",
78
80
  "no-regex-spaces": "error",
@@ -631,8 +633,30 @@
631
633
  }
632
634
  ],
633
635
  "no-extra-boolean-cast": "error",
634
- "no-restricted-exports": [
635
- 2,
636
+ "no-caller": "error",
637
+ "no-eval": "error",
638
+ "no-delete-var": "error",
639
+ "no-duplicate-imports": "error",
640
+ "prefer-const": "off",
641
+ "eslint-js/no-duplicate-imports": [
642
+ "error",
643
+ {
644
+ "includeExports": true
645
+ }
646
+ ],
647
+ "eslint-js/no-console": [
648
+ "error",
649
+ {
650
+ "allow": [
651
+ "warn",
652
+ "error"
653
+ ]
654
+ }
655
+ ],
656
+ "eslint-js/no-octal": "error",
657
+ "eslint-js/no-dupe-args": "error",
658
+ "eslint-js/no-restricted-exports": [
659
+ "error",
636
660
  {
637
661
  "restrictDefaultExports": {
638
662
  "direct": true,
@@ -643,12 +667,20 @@
643
667
  }
644
668
  }
645
669
  ],
646
- "no-caller": "error",
647
- "no-eval": "error",
648
- "no-delete-var": "error",
649
- "no-octal-escape": "error",
650
- "no-duplicate-imports": "error",
651
- "prefer-const": "off",
670
+ "eslint-js/no-restricted-syntax": [
671
+ "error",
672
+ {
673
+ "selector": "MemberExpression[object.name='React']",
674
+ "message": "Do not use `React.*`. Use named imports instead."
675
+ },
676
+ {
677
+ "selector": "MemberExpression[object.name='ReactDOM']",
678
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
679
+ }
680
+ ],
681
+ "eslint-js/no-negated-condition": "error",
682
+ "eslint-js/prefer-const": "off",
683
+ "eslint-js/no-octal-escape": "error",
652
684
  "headers/header-format": [
653
685
  "error",
654
686
  {
@@ -2028,10 +2060,53 @@
2028
2060
  "**/eslint.config.ts",
2029
2061
  "**/eslint.config.js",
2030
2062
  "**/vite.config.ts",
2031
- "**/vite.config.js"
2063
+ "**/vite.config.js",
2064
+ "**/vitest.config.ts",
2065
+ "**/vitest.config.js",
2066
+ "**/rolldown.config.ts",
2067
+ "**/rolldown.config.js",
2068
+ "**/playwright.config.ts",
2069
+ "**/playwright.config.js",
2070
+ "**/.dependency-cruiser.ts",
2071
+ "**/.dependency-cruiser.js",
2072
+ "**/.i18nrc.ts",
2073
+ "**/.i18nrc.js"
2032
2074
  ],
2033
2075
  "rules": {
2034
- "no-restricted-exports": "off"
2076
+ "eslint-js/no-restricted-exports": "off"
2077
+ }
2078
+ },
2079
+ {
2080
+ "files": [
2081
+ "**/*.ts",
2082
+ "**/*.tsx",
2083
+ "**/*.mts",
2084
+ "**/*.cts"
2085
+ ],
2086
+ "rules": {
2087
+ "eslint-js/no-restricted-syntax": [
2088
+ "error",
2089
+ {
2090
+ "selector": "MemberExpression[object.name='React']",
2091
+ "message": "Do not use `React.*`. Use named imports instead."
2092
+ },
2093
+ {
2094
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2095
+ "message": "Do not use `React.*` types. Use named imports instead."
2096
+ },
2097
+ {
2098
+ "selector": "ExportNamespaceSpecifier",
2099
+ "message": "Usage of 'export * as …' is forbidden."
2100
+ },
2101
+ {
2102
+ "selector": "ExportAllDeclaration",
2103
+ "message": "Usage of `export * from` is forbidden."
2104
+ },
2105
+ {
2106
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2107
+ "message": "Do not use `import * as ...` from relative paths."
2108
+ }
2109
+ ]
2035
2110
  }
2036
2111
  },
2037
2112
  {
@@ -2046,13 +2121,11 @@
2046
2121
  "getter-return": "off",
2047
2122
  "no-class-assign": "off",
2048
2123
  "no-const-assign": "off",
2049
- "no-dupe-args": "off",
2050
2124
  "no-dupe-class-members": "off",
2051
2125
  "no-dupe-keys": "off",
2052
2126
  "no-func-assign": "off",
2053
2127
  "no-import-assign": "off",
2054
2128
  "no-new-native-nonconstructor": "off",
2055
- "no-new-symbol": "off",
2056
2129
  "no-obj-calls": "off",
2057
2130
  "no-redeclare": "off",
2058
2131
  "no-setter-return": "off",
@@ -2066,7 +2139,6 @@
2066
2139
  "prefer-rest-params": "error",
2067
2140
  "prefer-spread": "error",
2068
2141
  "no-array-constructor": "off",
2069
- "no-unused-expressions": "off",
2070
2142
  "no-unused-vars": "off",
2071
2143
  "@typescript-eslint/no-array-constructor": "error",
2072
2144
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2082,11 +2154,11 @@
2082
2154
  "@typescript-eslint/prefer-as-const": "error",
2083
2155
  "@typescript-eslint/prefer-namespace-keyword": "error",
2084
2156
  "@typescript-eslint/triple-slash-reference": "error",
2085
- "@typescript-eslint/explicit-function-return-type": 0,
2086
- "@typescript-eslint/no-use-before-define": 0,
2087
- "@typescript-eslint/no-empty-function": 0,
2157
+ "@typescript-eslint/explicit-function-return-type": "off",
2158
+ "@typescript-eslint/no-use-before-define": "off",
2159
+ "@typescript-eslint/no-empty-function": "off",
2088
2160
  "@typescript-eslint/no-unused-vars": [
2089
- 2,
2161
+ "error",
2090
2162
  {
2091
2163
  "varsIgnorePattern": "^_.*$",
2092
2164
  "argsIgnorePattern": "^_.*$"
@@ -2125,34 +2197,8 @@
2125
2197
  }
2126
2198
  }
2127
2199
  ],
2128
- "@typescript-eslint/explicit-member-accessibility": "off",
2129
- "@typescript-eslint/interface-name-prefix": "off",
2130
- "@typescript-eslint/member-ordering": "off",
2131
2200
  "@typescript-eslint/no-inferrable-types": "off",
2132
2201
  "@typescript-eslint/no-non-null-assertion": "off",
2133
- "no-restricted-syntax": [
2134
- "error",
2135
- {
2136
- "selector": "MemberExpression[object.name='React']",
2137
- "message": "Do not use `React.*`. Use named imports instead."
2138
- },
2139
- {
2140
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2141
- "message": "Do not use `React.*` types. Use named imports instead."
2142
- },
2143
- {
2144
- "selector": "ExportNamespaceSpecifier",
2145
- "message": "Usage of 'export * as …' is forbidden."
2146
- },
2147
- {
2148
- "selector": "ExportAllDeclaration",
2149
- "message": "Usage of `export * from` is forbidden."
2150
- },
2151
- {
2152
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2153
- "message": "Do not use `import * as ...` from relative paths."
2154
- }
2155
- ],
2156
2202
  "@typescript-eslint/consistent-type-imports": [
2157
2203
  "error",
2158
2204
  {
@@ -7,6 +7,10 @@
7
7
  "import"
8
8
  ],
9
9
  "jsPlugins": [
10
+ {
11
+ "name": "eslint-js",
12
+ "specifier": "oxlint-plugin-eslint"
13
+ },
10
14
  {
11
15
  "name": "headers",
12
16
  "specifier": "eslint-plugin-headers"
@@ -63,7 +67,6 @@
63
67
  "no-constant-condition": "error",
64
68
  "no-control-regex": "error",
65
69
  "no-debugger": "error",
66
- "no-dupe-args": "error",
67
70
  "no-dupe-class-members": "error",
68
71
  "no-dupe-else-if": "error",
69
72
  "no-dupe-keys": "error",
@@ -84,7 +87,6 @@
84
87
  "no-new-native-nonconstructor": "error",
85
88
  "no-nonoctal-decimal-escape": "error",
86
89
  "no-obj-calls": "error",
87
- "no-octal": "error",
88
90
  "no-prototype-builtins": "error",
89
91
  "no-redeclare": "error",
90
92
  "no-regex-spaces": "error",
@@ -643,8 +645,30 @@
643
645
  }
644
646
  ],
645
647
  "no-extra-boolean-cast": "error",
646
- "no-restricted-exports": [
647
- 2,
648
+ "no-caller": "error",
649
+ "no-eval": "error",
650
+ "no-delete-var": "error",
651
+ "no-duplicate-imports": "error",
652
+ "prefer-const": "off",
653
+ "eslint-js/no-duplicate-imports": [
654
+ "error",
655
+ {
656
+ "includeExports": true
657
+ }
658
+ ],
659
+ "eslint-js/no-console": [
660
+ "error",
661
+ {
662
+ "allow": [
663
+ "warn",
664
+ "error"
665
+ ]
666
+ }
667
+ ],
668
+ "eslint-js/no-octal": "error",
669
+ "eslint-js/no-dupe-args": "error",
670
+ "eslint-js/no-restricted-exports": [
671
+ "error",
648
672
  {
649
673
  "restrictDefaultExports": {
650
674
  "direct": true,
@@ -655,12 +679,20 @@
655
679
  }
656
680
  }
657
681
  ],
658
- "no-caller": "error",
659
- "no-eval": "error",
660
- "no-delete-var": "error",
661
- "no-octal-escape": "error",
662
- "no-duplicate-imports": "error",
663
- "prefer-const": "off",
682
+ "eslint-js/no-restricted-syntax": [
683
+ "error",
684
+ {
685
+ "selector": "MemberExpression[object.name='React']",
686
+ "message": "Do not use `React.*`. Use named imports instead."
687
+ },
688
+ {
689
+ "selector": "MemberExpression[object.name='ReactDOM']",
690
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
691
+ }
692
+ ],
693
+ "eslint-js/no-negated-condition": "error",
694
+ "eslint-js/prefer-const": "off",
695
+ "eslint-js/no-octal-escape": "error",
664
696
  "headers/header-format": [
665
697
  "error",
666
698
  {
@@ -989,7 +1021,6 @@
989
1021
  "playwright/valid-expect-in-promise": "error",
990
1022
  "playwright/valid-test-tags": "error",
991
1023
  "playwright/valid-title": "error",
992
- "no-unused-expressions": "off",
993
1024
  "chai-friendly/no-unused-expressions": "error",
994
1025
  "no-only-tests/no-only-tests": [
995
1026
  "error",
@@ -2088,10 +2119,53 @@
2088
2119
  "**/eslint.config.ts",
2089
2120
  "**/eslint.config.js",
2090
2121
  "**/vite.config.ts",
2091
- "**/vite.config.js"
2122
+ "**/vite.config.js",
2123
+ "**/vitest.config.ts",
2124
+ "**/vitest.config.js",
2125
+ "**/rolldown.config.ts",
2126
+ "**/rolldown.config.js",
2127
+ "**/playwright.config.ts",
2128
+ "**/playwright.config.js",
2129
+ "**/.dependency-cruiser.ts",
2130
+ "**/.dependency-cruiser.js",
2131
+ "**/.i18nrc.ts",
2132
+ "**/.i18nrc.js"
2092
2133
  ],
2093
2134
  "rules": {
2094
- "no-restricted-exports": "off"
2135
+ "eslint-js/no-restricted-exports": "off"
2136
+ }
2137
+ },
2138
+ {
2139
+ "files": [
2140
+ "**/*.ts",
2141
+ "**/*.tsx",
2142
+ "**/*.mts",
2143
+ "**/*.cts"
2144
+ ],
2145
+ "rules": {
2146
+ "eslint-js/no-restricted-syntax": [
2147
+ "error",
2148
+ {
2149
+ "selector": "MemberExpression[object.name='React']",
2150
+ "message": "Do not use `React.*`. Use named imports instead."
2151
+ },
2152
+ {
2153
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2154
+ "message": "Do not use `React.*` types. Use named imports instead."
2155
+ },
2156
+ {
2157
+ "selector": "ExportNamespaceSpecifier",
2158
+ "message": "Usage of 'export * as …' is forbidden."
2159
+ },
2160
+ {
2161
+ "selector": "ExportAllDeclaration",
2162
+ "message": "Usage of `export * from` is forbidden."
2163
+ },
2164
+ {
2165
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2166
+ "message": "Do not use `import * as ...` from relative paths."
2167
+ }
2168
+ ]
2095
2169
  }
2096
2170
  },
2097
2171
  {
@@ -2106,13 +2180,11 @@
2106
2180
  "getter-return": "off",
2107
2181
  "no-class-assign": "off",
2108
2182
  "no-const-assign": "off",
2109
- "no-dupe-args": "off",
2110
2183
  "no-dupe-class-members": "off",
2111
2184
  "no-dupe-keys": "off",
2112
2185
  "no-func-assign": "off",
2113
2186
  "no-import-assign": "off",
2114
2187
  "no-new-native-nonconstructor": "off",
2115
- "no-new-symbol": "off",
2116
2188
  "no-obj-calls": "off",
2117
2189
  "no-redeclare": "off",
2118
2190
  "no-setter-return": "off",
@@ -2126,7 +2198,6 @@
2126
2198
  "prefer-rest-params": "error",
2127
2199
  "prefer-spread": "error",
2128
2200
  "no-array-constructor": "off",
2129
- "no-unused-expressions": "off",
2130
2201
  "no-unused-vars": "off",
2131
2202
  "@typescript-eslint/no-array-constructor": "error",
2132
2203
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2142,11 +2213,11 @@
2142
2213
  "@typescript-eslint/prefer-as-const": "error",
2143
2214
  "@typescript-eslint/prefer-namespace-keyword": "error",
2144
2215
  "@typescript-eslint/triple-slash-reference": "error",
2145
- "@typescript-eslint/explicit-function-return-type": 0,
2146
- "@typescript-eslint/no-use-before-define": 0,
2147
- "@typescript-eslint/no-empty-function": 0,
2216
+ "@typescript-eslint/explicit-function-return-type": "off",
2217
+ "@typescript-eslint/no-use-before-define": "off",
2218
+ "@typescript-eslint/no-empty-function": "off",
2148
2219
  "@typescript-eslint/no-unused-vars": [
2149
- 2,
2220
+ "error",
2150
2221
  {
2151
2222
  "varsIgnorePattern": "^_.*$",
2152
2223
  "argsIgnorePattern": "^_.*$"
@@ -2185,34 +2256,8 @@
2185
2256
  }
2186
2257
  }
2187
2258
  ],
2188
- "@typescript-eslint/explicit-member-accessibility": "off",
2189
- "@typescript-eslint/interface-name-prefix": "off",
2190
- "@typescript-eslint/member-ordering": "off",
2191
2259
  "@typescript-eslint/no-inferrable-types": "off",
2192
2260
  "@typescript-eslint/no-non-null-assertion": "off",
2193
- "no-restricted-syntax": [
2194
- "error",
2195
- {
2196
- "selector": "MemberExpression[object.name='React']",
2197
- "message": "Do not use `React.*`. Use named imports instead."
2198
- },
2199
- {
2200
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2201
- "message": "Do not use `React.*` types. Use named imports instead."
2202
- },
2203
- {
2204
- "selector": "ExportNamespaceSpecifier",
2205
- "message": "Usage of 'export * as …' is forbidden."
2206
- },
2207
- {
2208
- "selector": "ExportAllDeclaration",
2209
- "message": "Usage of `export * from` is forbidden."
2210
- },
2211
- {
2212
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2213
- "message": "Do not use `import * as ...` from relative paths."
2214
- }
2215
- ],
2216
2261
  "@typescript-eslint/consistent-type-imports": [
2217
2262
  "error",
2218
2263
  {