@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.
@@ -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
  {
@@ -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"
@@ -638,6 +642,49 @@
638
642
  "no-delete-var": "error",
639
643
  "no-duplicate-imports": "error",
640
644
  "prefer-const": "off",
645
+ "eslint-js/no-duplicate-imports": [
646
+ "error",
647
+ {
648
+ "includeExports": true
649
+ }
650
+ ],
651
+ "eslint-js/no-console": [
652
+ "error",
653
+ {
654
+ "allow": [
655
+ "warn",
656
+ "error"
657
+ ]
658
+ }
659
+ ],
660
+ "eslint-js/no-octal": "error",
661
+ "eslint-js/no-dupe-args": "error",
662
+ "eslint-js/no-restricted-exports": [
663
+ "error",
664
+ {
665
+ "restrictDefaultExports": {
666
+ "direct": true,
667
+ "named": true,
668
+ "defaultFrom": true,
669
+ "namedFrom": true,
670
+ "namespaceFrom": true
671
+ }
672
+ }
673
+ ],
674
+ "eslint-js/no-restricted-syntax": [
675
+ "error",
676
+ {
677
+ "selector": "MemberExpression[object.name='React']",
678
+ "message": "Do not use `React.*`. Use named imports instead."
679
+ },
680
+ {
681
+ "selector": "MemberExpression[object.name='ReactDOM']",
682
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
683
+ }
684
+ ],
685
+ "eslint-js/no-negated-condition": "error",
686
+ "eslint-js/prefer-const": "off",
687
+ "eslint-js/no-octal-escape": "error",
641
688
  "headers/header-format": [
642
689
  "error",
643
690
  {
@@ -2012,6 +2059,60 @@
2012
2059
  ]
2013
2060
  }
2014
2061
  },
2062
+ {
2063
+ "files": [
2064
+ "**/eslint.config.ts",
2065
+ "**/eslint.config.js",
2066
+ "**/vite.config.ts",
2067
+ "**/vite.config.js",
2068
+ "**/vitest.config.ts",
2069
+ "**/vitest.config.js",
2070
+ "**/rolldown.config.ts",
2071
+ "**/rolldown.config.js",
2072
+ "**/playwright.config.ts",
2073
+ "**/playwright.config.js",
2074
+ "**/.dependency-cruiser.ts",
2075
+ "**/.dependency-cruiser.js",
2076
+ "**/.i18nrc.ts",
2077
+ "**/.i18nrc.js"
2078
+ ],
2079
+ "rules": {
2080
+ "eslint-js/no-restricted-exports": "off"
2081
+ }
2082
+ },
2083
+ {
2084
+ "files": [
2085
+ "**/*.ts",
2086
+ "**/*.tsx",
2087
+ "**/*.mts",
2088
+ "**/*.cts"
2089
+ ],
2090
+ "rules": {
2091
+ "eslint-js/no-restricted-syntax": [
2092
+ "error",
2093
+ {
2094
+ "selector": "MemberExpression[object.name='React']",
2095
+ "message": "Do not use `React.*`. Use named imports instead."
2096
+ },
2097
+ {
2098
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2099
+ "message": "Do not use `React.*` types. Use named imports instead."
2100
+ },
2101
+ {
2102
+ "selector": "ExportNamespaceSpecifier",
2103
+ "message": "Usage of 'export * as …' is forbidden."
2104
+ },
2105
+ {
2106
+ "selector": "ExportAllDeclaration",
2107
+ "message": "Usage of `export * from` is forbidden."
2108
+ },
2109
+ {
2110
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2111
+ "message": "Do not use `import * as ...` from relative paths."
2112
+ }
2113
+ ]
2114
+ }
2115
+ },
2015
2116
  {
2016
2117
  "files": [
2017
2118
  "**/*.ts",
@@ -2024,13 +2125,11 @@
2024
2125
  "getter-return": "off",
2025
2126
  "no-class-assign": "off",
2026
2127
  "no-const-assign": "off",
2027
- "no-dupe-args": "off",
2028
2128
  "no-dupe-class-members": "off",
2029
2129
  "no-dupe-keys": "off",
2030
2130
  "no-func-assign": "off",
2031
2131
  "no-import-assign": "off",
2032
2132
  "no-new-native-nonconstructor": "off",
2033
- "no-new-symbol": "off",
2034
2133
  "no-obj-calls": "off",
2035
2134
  "no-redeclare": "off",
2036
2135
  "no-setter-return": "off",
@@ -2044,7 +2143,6 @@
2044
2143
  "prefer-rest-params": "error",
2045
2144
  "prefer-spread": "error",
2046
2145
  "no-array-constructor": "off",
2047
- "no-unused-expressions": "off",
2048
2146
  "no-unused-vars": "off",
2049
2147
  "@typescript-eslint/no-array-constructor": "error",
2050
2148
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2060,11 +2158,11 @@
2060
2158
  "@typescript-eslint/prefer-as-const": "error",
2061
2159
  "@typescript-eslint/prefer-namespace-keyword": "error",
2062
2160
  "@typescript-eslint/triple-slash-reference": "error",
2063
- "@typescript-eslint/explicit-function-return-type": 0,
2064
- "@typescript-eslint/no-use-before-define": 0,
2065
- "@typescript-eslint/no-empty-function": 0,
2161
+ "@typescript-eslint/explicit-function-return-type": "off",
2162
+ "@typescript-eslint/no-use-before-define": "off",
2163
+ "@typescript-eslint/no-empty-function": "off",
2066
2164
  "@typescript-eslint/no-unused-vars": [
2067
- 2,
2165
+ "error",
2068
2166
  {
2069
2167
  "varsIgnorePattern": "^_.*$",
2070
2168
  "argsIgnorePattern": "^_.*$"
@@ -2103,34 +2201,8 @@
2103
2201
  }
2104
2202
  }
2105
2203
  ],
2106
- "@typescript-eslint/explicit-member-accessibility": "off",
2107
- "@typescript-eslint/interface-name-prefix": "off",
2108
- "@typescript-eslint/member-ordering": "off",
2109
2204
  "@typescript-eslint/no-inferrable-types": "off",
2110
2205
  "@typescript-eslint/no-non-null-assertion": "off",
2111
- "no-restricted-syntax": [
2112
- "error",
2113
- {
2114
- "selector": "MemberExpression[object.name='React']",
2115
- "message": "Do not use `React.*`. Use named imports instead."
2116
- },
2117
- {
2118
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2119
- "message": "Do not use `React.*` types. Use named imports instead."
2120
- },
2121
- {
2122
- "selector": "ExportNamespaceSpecifier",
2123
- "message": "Usage of 'export * as …' is forbidden."
2124
- },
2125
- {
2126
- "selector": "ExportAllDeclaration",
2127
- "message": "Usage of `export * from` is forbidden."
2128
- },
2129
- {
2130
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2131
- "message": "Do not use `import * as ...` from relative paths."
2132
- }
2133
- ],
2134
2206
  "@typescript-eslint/consistent-type-imports": [
2135
2207
  "error",
2136
2208
  {
@@ -8,6 +8,10 @@
8
8
  "vitest"
9
9
  ],
10
10
  "jsPlugins": [
11
+ {
12
+ "name": "eslint-js",
13
+ "specifier": "oxlint-plugin-eslint"
14
+ },
11
15
  {
12
16
  "name": "headers",
13
17
  "specifier": "eslint-plugin-headers"
@@ -643,6 +647,49 @@
643
647
  "no-delete-var": "error",
644
648
  "no-duplicate-imports": "error",
645
649
  "prefer-const": "off",
650
+ "eslint-js/no-duplicate-imports": [
651
+ "error",
652
+ {
653
+ "includeExports": true
654
+ }
655
+ ],
656
+ "eslint-js/no-console": [
657
+ "error",
658
+ {
659
+ "allow": [
660
+ "warn",
661
+ "error"
662
+ ]
663
+ }
664
+ ],
665
+ "eslint-js/no-octal": "error",
666
+ "eslint-js/no-dupe-args": "error",
667
+ "eslint-js/no-restricted-exports": [
668
+ "error",
669
+ {
670
+ "restrictDefaultExports": {
671
+ "direct": true,
672
+ "named": true,
673
+ "defaultFrom": true,
674
+ "namedFrom": true,
675
+ "namespaceFrom": true
676
+ }
677
+ }
678
+ ],
679
+ "eslint-js/no-restricted-syntax": [
680
+ "error",
681
+ {
682
+ "selector": "MemberExpression[object.name='React']",
683
+ "message": "Do not use `React.*`. Use named imports instead."
684
+ },
685
+ {
686
+ "selector": "MemberExpression[object.name='ReactDOM']",
687
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
688
+ }
689
+ ],
690
+ "eslint-js/no-negated-condition": "error",
691
+ "eslint-js/prefer-const": "off",
692
+ "eslint-js/no-octal-escape": "error",
646
693
  "headers/header-format": [
647
694
  "error",
648
695
  {
@@ -2081,6 +2128,60 @@
2081
2128
  ]
2082
2129
  }
2083
2130
  },
2131
+ {
2132
+ "files": [
2133
+ "**/eslint.config.ts",
2134
+ "**/eslint.config.js",
2135
+ "**/vite.config.ts",
2136
+ "**/vite.config.js",
2137
+ "**/vitest.config.ts",
2138
+ "**/vitest.config.js",
2139
+ "**/rolldown.config.ts",
2140
+ "**/rolldown.config.js",
2141
+ "**/playwright.config.ts",
2142
+ "**/playwright.config.js",
2143
+ "**/.dependency-cruiser.ts",
2144
+ "**/.dependency-cruiser.js",
2145
+ "**/.i18nrc.ts",
2146
+ "**/.i18nrc.js"
2147
+ ],
2148
+ "rules": {
2149
+ "eslint-js/no-restricted-exports": "off"
2150
+ }
2151
+ },
2152
+ {
2153
+ "files": [
2154
+ "**/*.ts",
2155
+ "**/*.tsx",
2156
+ "**/*.mts",
2157
+ "**/*.cts"
2158
+ ],
2159
+ "rules": {
2160
+ "eslint-js/no-restricted-syntax": [
2161
+ "error",
2162
+ {
2163
+ "selector": "MemberExpression[object.name='React']",
2164
+ "message": "Do not use `React.*`. Use named imports instead."
2165
+ },
2166
+ {
2167
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2168
+ "message": "Do not use `React.*` types. Use named imports instead."
2169
+ },
2170
+ {
2171
+ "selector": "ExportNamespaceSpecifier",
2172
+ "message": "Usage of 'export * as …' is forbidden."
2173
+ },
2174
+ {
2175
+ "selector": "ExportAllDeclaration",
2176
+ "message": "Usage of `export * from` is forbidden."
2177
+ },
2178
+ {
2179
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2180
+ "message": "Do not use `import * as ...` from relative paths."
2181
+ }
2182
+ ]
2183
+ }
2184
+ },
2084
2185
  {
2085
2186
  "files": [
2086
2187
  "**/*.ts",
@@ -2093,13 +2194,11 @@
2093
2194
  "getter-return": "off",
2094
2195
  "no-class-assign": "off",
2095
2196
  "no-const-assign": "off",
2096
- "no-dupe-args": "off",
2097
2197
  "no-dupe-class-members": "off",
2098
2198
  "no-dupe-keys": "off",
2099
2199
  "no-func-assign": "off",
2100
2200
  "no-import-assign": "off",
2101
2201
  "no-new-native-nonconstructor": "off",
2102
- "no-new-symbol": "off",
2103
2202
  "no-obj-calls": "off",
2104
2203
  "no-redeclare": "off",
2105
2204
  "no-setter-return": "off",
@@ -2113,7 +2212,6 @@
2113
2212
  "prefer-rest-params": "error",
2114
2213
  "prefer-spread": "error",
2115
2214
  "no-array-constructor": "off",
2116
- "no-unused-expressions": "off",
2117
2215
  "no-unused-vars": "off",
2118
2216
  "@typescript-eslint/no-array-constructor": "error",
2119
2217
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2129,11 +2227,11 @@
2129
2227
  "@typescript-eslint/prefer-as-const": "error",
2130
2228
  "@typescript-eslint/prefer-namespace-keyword": "error",
2131
2229
  "@typescript-eslint/triple-slash-reference": "error",
2132
- "@typescript-eslint/explicit-function-return-type": 0,
2133
- "@typescript-eslint/no-use-before-define": 0,
2134
- "@typescript-eslint/no-empty-function": 0,
2230
+ "@typescript-eslint/explicit-function-return-type": "off",
2231
+ "@typescript-eslint/no-use-before-define": "off",
2232
+ "@typescript-eslint/no-empty-function": "off",
2135
2233
  "@typescript-eslint/no-unused-vars": [
2136
- 2,
2234
+ "error",
2137
2235
  {
2138
2236
  "varsIgnorePattern": "^_.*$",
2139
2237
  "argsIgnorePattern": "^_.*$"
@@ -2172,34 +2270,8 @@
2172
2270
  }
2173
2271
  }
2174
2272
  ],
2175
- "@typescript-eslint/explicit-member-accessibility": "off",
2176
- "@typescript-eslint/interface-name-prefix": "off",
2177
- "@typescript-eslint/member-ordering": "off",
2178
2273
  "@typescript-eslint/no-inferrable-types": "off",
2179
2274
  "@typescript-eslint/no-non-null-assertion": "off",
2180
- "no-restricted-syntax": [
2181
- "error",
2182
- {
2183
- "selector": "MemberExpression[object.name='React']",
2184
- "message": "Do not use `React.*`. Use named imports instead."
2185
- },
2186
- {
2187
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2188
- "message": "Do not use `React.*` types. Use named imports instead."
2189
- },
2190
- {
2191
- "selector": "ExportNamespaceSpecifier",
2192
- "message": "Usage of 'export * as …' is forbidden."
2193
- },
2194
- {
2195
- "selector": "ExportAllDeclaration",
2196
- "message": "Usage of `export * from` is forbidden."
2197
- },
2198
- {
2199
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2200
- "message": "Do not use `import * as ...` from relative paths."
2201
- }
2202
- ],
2203
2275
  "@typescript-eslint/consistent-type-imports": [
2204
2276
  "error",
2205
2277
  {