@gooddata/oxlint-config 11.57.0-alpha.1 → 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"
@@ -630,6 +634,49 @@
630
634
  "no-delete-var": "error",
631
635
  "no-duplicate-imports": "error",
632
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",
656
+ {
657
+ "restrictDefaultExports": {
658
+ "direct": true,
659
+ "named": true,
660
+ "defaultFrom": true,
661
+ "namedFrom": true,
662
+ "namespaceFrom": true
663
+ }
664
+ }
665
+ ],
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",
633
680
  "headers/header-format": [
634
681
  "error",
635
682
  {
@@ -2003,6 +2050,60 @@
2003
2050
  ]
2004
2051
  }
2005
2052
  },
2053
+ {
2054
+ "files": [
2055
+ "**/eslint.config.ts",
2056
+ "**/eslint.config.js",
2057
+ "**/vite.config.ts",
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"
2069
+ ],
2070
+ "rules": {
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
+ ]
2105
+ }
2106
+ },
2006
2107
  {
2007
2108
  "files": [
2008
2109
  "**/*.ts",
@@ -2015,13 +2116,11 @@
2015
2116
  "getter-return": "off",
2016
2117
  "no-class-assign": "off",
2017
2118
  "no-const-assign": "off",
2018
- "no-dupe-args": "off",
2019
2119
  "no-dupe-class-members": "off",
2020
2120
  "no-dupe-keys": "off",
2021
2121
  "no-func-assign": "off",
2022
2122
  "no-import-assign": "off",
2023
2123
  "no-new-native-nonconstructor": "off",
2024
- "no-new-symbol": "off",
2025
2124
  "no-obj-calls": "off",
2026
2125
  "no-redeclare": "off",
2027
2126
  "no-setter-return": "off",
@@ -2035,7 +2134,6 @@
2035
2134
  "prefer-rest-params": "error",
2036
2135
  "prefer-spread": "error",
2037
2136
  "no-array-constructor": "off",
2038
- "no-unused-expressions": "off",
2039
2137
  "no-unused-vars": "off",
2040
2138
  "@typescript-eslint/no-array-constructor": "error",
2041
2139
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2051,11 +2149,11 @@
2051
2149
  "@typescript-eslint/prefer-as-const": "error",
2052
2150
  "@typescript-eslint/prefer-namespace-keyword": "error",
2053
2151
  "@typescript-eslint/triple-slash-reference": "error",
2054
- "@typescript-eslint/explicit-function-return-type": 0,
2055
- "@typescript-eslint/no-use-before-define": 0,
2056
- "@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",
2057
2155
  "@typescript-eslint/no-unused-vars": [
2058
- 2,
2156
+ "error",
2059
2157
  {
2060
2158
  "varsIgnorePattern": "^_.*$",
2061
2159
  "argsIgnorePattern": "^_.*$"
@@ -2094,34 +2192,8 @@
2094
2192
  }
2095
2193
  }
2096
2194
  ],
2097
- "@typescript-eslint/explicit-member-accessibility": "off",
2098
- "@typescript-eslint/interface-name-prefix": "off",
2099
- "@typescript-eslint/member-ordering": "off",
2100
2195
  "@typescript-eslint/no-inferrable-types": "off",
2101
2196
  "@typescript-eslint/no-non-null-assertion": "off",
2102
- "no-restricted-syntax": [
2103
- "error",
2104
- {
2105
- "selector": "MemberExpression[object.name='React']",
2106
- "message": "Do not use `React.*`. Use named imports instead."
2107
- },
2108
- {
2109
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2110
- "message": "Do not use `React.*` types. Use named imports instead."
2111
- },
2112
- {
2113
- "selector": "ExportNamespaceSpecifier",
2114
- "message": "Usage of 'export * as …' is forbidden."
2115
- },
2116
- {
2117
- "selector": "ExportAllDeclaration",
2118
- "message": "Usage of `export * from` is forbidden."
2119
- },
2120
- {
2121
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2122
- "message": "Do not use `import * as ...` from relative paths."
2123
- }
2124
- ],
2125
2197
  "@typescript-eslint/consistent-type-imports": [
2126
2198
  "error",
2127
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"
@@ -634,6 +638,49 @@
634
638
  "no-delete-var": "error",
635
639
  "no-duplicate-imports": "error",
636
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",
660
+ {
661
+ "restrictDefaultExports": {
662
+ "direct": true,
663
+ "named": true,
664
+ "defaultFrom": true,
665
+ "namedFrom": true,
666
+ "namespaceFrom": true
667
+ }
668
+ }
669
+ ],
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",
637
684
  "headers/header-format": [
638
685
  "error",
639
686
  {
@@ -2008,6 +2055,60 @@
2008
2055
  ]
2009
2056
  }
2010
2057
  },
2058
+ {
2059
+ "files": [
2060
+ "**/eslint.config.ts",
2061
+ "**/eslint.config.js",
2062
+ "**/vite.config.ts",
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"
2074
+ ],
2075
+ "rules": {
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
+ ]
2110
+ }
2111
+ },
2011
2112
  {
2012
2113
  "files": [
2013
2114
  "**/*.ts",
@@ -2020,13 +2121,11 @@
2020
2121
  "getter-return": "off",
2021
2122
  "no-class-assign": "off",
2022
2123
  "no-const-assign": "off",
2023
- "no-dupe-args": "off",
2024
2124
  "no-dupe-class-members": "off",
2025
2125
  "no-dupe-keys": "off",
2026
2126
  "no-func-assign": "off",
2027
2127
  "no-import-assign": "off",
2028
2128
  "no-new-native-nonconstructor": "off",
2029
- "no-new-symbol": "off",
2030
2129
  "no-obj-calls": "off",
2031
2130
  "no-redeclare": "off",
2032
2131
  "no-setter-return": "off",
@@ -2040,7 +2139,6 @@
2040
2139
  "prefer-rest-params": "error",
2041
2140
  "prefer-spread": "error",
2042
2141
  "no-array-constructor": "off",
2043
- "no-unused-expressions": "off",
2044
2142
  "no-unused-vars": "off",
2045
2143
  "@typescript-eslint/no-array-constructor": "error",
2046
2144
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2056,11 +2154,11 @@
2056
2154
  "@typescript-eslint/prefer-as-const": "error",
2057
2155
  "@typescript-eslint/prefer-namespace-keyword": "error",
2058
2156
  "@typescript-eslint/triple-slash-reference": "error",
2059
- "@typescript-eslint/explicit-function-return-type": 0,
2060
- "@typescript-eslint/no-use-before-define": 0,
2061
- "@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",
2062
2160
  "@typescript-eslint/no-unused-vars": [
2063
- 2,
2161
+ "error",
2064
2162
  {
2065
2163
  "varsIgnorePattern": "^_.*$",
2066
2164
  "argsIgnorePattern": "^_.*$"
@@ -2099,34 +2197,8 @@
2099
2197
  }
2100
2198
  }
2101
2199
  ],
2102
- "@typescript-eslint/explicit-member-accessibility": "off",
2103
- "@typescript-eslint/interface-name-prefix": "off",
2104
- "@typescript-eslint/member-ordering": "off",
2105
2200
  "@typescript-eslint/no-inferrable-types": "off",
2106
2201
  "@typescript-eslint/no-non-null-assertion": "off",
2107
- "no-restricted-syntax": [
2108
- "error",
2109
- {
2110
- "selector": "MemberExpression[object.name='React']",
2111
- "message": "Do not use `React.*`. Use named imports instead."
2112
- },
2113
- {
2114
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2115
- "message": "Do not use `React.*` types. Use named imports instead."
2116
- },
2117
- {
2118
- "selector": "ExportNamespaceSpecifier",
2119
- "message": "Usage of 'export * as …' is forbidden."
2120
- },
2121
- {
2122
- "selector": "ExportAllDeclaration",
2123
- "message": "Usage of `export * from` is forbidden."
2124
- },
2125
- {
2126
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2127
- "message": "Do not use `import * as ...` from relative paths."
2128
- }
2129
- ],
2130
2202
  "@typescript-eslint/consistent-type-imports": [
2131
2203
  "error",
2132
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"
@@ -646,6 +650,49 @@
646
650
  "no-delete-var": "error",
647
651
  "no-duplicate-imports": "error",
648
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",
672
+ {
673
+ "restrictDefaultExports": {
674
+ "direct": true,
675
+ "named": true,
676
+ "defaultFrom": true,
677
+ "namedFrom": true,
678
+ "namespaceFrom": true
679
+ }
680
+ }
681
+ ],
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",
649
696
  "headers/header-format": [
650
697
  "error",
651
698
  {
@@ -974,7 +1021,6 @@
974
1021
  "playwright/valid-expect-in-promise": "error",
975
1022
  "playwright/valid-test-tags": "error",
976
1023
  "playwright/valid-title": "error",
977
- "no-unused-expressions": "off",
978
1024
  "chai-friendly/no-unused-expressions": "error",
979
1025
  "no-only-tests/no-only-tests": [
980
1026
  "error",
@@ -2068,6 +2114,60 @@
2068
2114
  ]
2069
2115
  }
2070
2116
  },
2117
+ {
2118
+ "files": [
2119
+ "**/eslint.config.ts",
2120
+ "**/eslint.config.js",
2121
+ "**/vite.config.ts",
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"
2133
+ ],
2134
+ "rules": {
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
+ ]
2169
+ }
2170
+ },
2071
2171
  {
2072
2172
  "files": [
2073
2173
  "**/*.ts",
@@ -2080,13 +2180,11 @@
2080
2180
  "getter-return": "off",
2081
2181
  "no-class-assign": "off",
2082
2182
  "no-const-assign": "off",
2083
- "no-dupe-args": "off",
2084
2183
  "no-dupe-class-members": "off",
2085
2184
  "no-dupe-keys": "off",
2086
2185
  "no-func-assign": "off",
2087
2186
  "no-import-assign": "off",
2088
2187
  "no-new-native-nonconstructor": "off",
2089
- "no-new-symbol": "off",
2090
2188
  "no-obj-calls": "off",
2091
2189
  "no-redeclare": "off",
2092
2190
  "no-setter-return": "off",
@@ -2100,7 +2198,6 @@
2100
2198
  "prefer-rest-params": "error",
2101
2199
  "prefer-spread": "error",
2102
2200
  "no-array-constructor": "off",
2103
- "no-unused-expressions": "off",
2104
2201
  "no-unused-vars": "off",
2105
2202
  "@typescript-eslint/no-array-constructor": "error",
2106
2203
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2116,11 +2213,11 @@
2116
2213
  "@typescript-eslint/prefer-as-const": "error",
2117
2214
  "@typescript-eslint/prefer-namespace-keyword": "error",
2118
2215
  "@typescript-eslint/triple-slash-reference": "error",
2119
- "@typescript-eslint/explicit-function-return-type": 0,
2120
- "@typescript-eslint/no-use-before-define": 0,
2121
- "@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",
2122
2219
  "@typescript-eslint/no-unused-vars": [
2123
- 2,
2220
+ "error",
2124
2221
  {
2125
2222
  "varsIgnorePattern": "^_.*$",
2126
2223
  "argsIgnorePattern": "^_.*$"
@@ -2159,34 +2256,8 @@
2159
2256
  }
2160
2257
  }
2161
2258
  ],
2162
- "@typescript-eslint/explicit-member-accessibility": "off",
2163
- "@typescript-eslint/interface-name-prefix": "off",
2164
- "@typescript-eslint/member-ordering": "off",
2165
2259
  "@typescript-eslint/no-inferrable-types": "off",
2166
2260
  "@typescript-eslint/no-non-null-assertion": "off",
2167
- "no-restricted-syntax": [
2168
- "error",
2169
- {
2170
- "selector": "MemberExpression[object.name='React']",
2171
- "message": "Do not use `React.*`. Use named imports instead."
2172
- },
2173
- {
2174
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2175
- "message": "Do not use `React.*` types. Use named imports instead."
2176
- },
2177
- {
2178
- "selector": "ExportNamespaceSpecifier",
2179
- "message": "Usage of 'export * as …' is forbidden."
2180
- },
2181
- {
2182
- "selector": "ExportAllDeclaration",
2183
- "message": "Usage of `export * from` is forbidden."
2184
- },
2185
- {
2186
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2187
- "message": "Do not use `import * as ...` from relative paths."
2188
- }
2189
- ],
2190
2261
  "@typescript-eslint/consistent-type-imports": [
2191
2262
  "error",
2192
2263
  {