@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.
@@ -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"
@@ -639,6 +643,49 @@
639
643
  "no-delete-var": "error",
640
644
  "no-duplicate-imports": "error",
641
645
  "prefer-const": "off",
646
+ "eslint-js/no-duplicate-imports": [
647
+ "error",
648
+ {
649
+ "includeExports": true
650
+ }
651
+ ],
652
+ "eslint-js/no-console": [
653
+ "error",
654
+ {
655
+ "allow": [
656
+ "warn",
657
+ "error"
658
+ ]
659
+ }
660
+ ],
661
+ "eslint-js/no-octal": "error",
662
+ "eslint-js/no-dupe-args": "error",
663
+ "eslint-js/no-restricted-exports": [
664
+ "error",
665
+ {
666
+ "restrictDefaultExports": {
667
+ "direct": true,
668
+ "named": true,
669
+ "defaultFrom": true,
670
+ "namedFrom": true,
671
+ "namespaceFrom": true
672
+ }
673
+ }
674
+ ],
675
+ "eslint-js/no-restricted-syntax": [
676
+ "error",
677
+ {
678
+ "selector": "MemberExpression[object.name='React']",
679
+ "message": "Do not use `React.*`. Use named imports instead."
680
+ },
681
+ {
682
+ "selector": "MemberExpression[object.name='ReactDOM']",
683
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
684
+ }
685
+ ],
686
+ "eslint-js/no-negated-condition": "error",
687
+ "eslint-js/prefer-const": "off",
688
+ "eslint-js/no-octal-escape": "error",
642
689
  "headers/header-format": [
643
690
  "error",
644
691
  {
@@ -2040,6 +2087,60 @@
2040
2087
  ]
2041
2088
  }
2042
2089
  },
2090
+ {
2091
+ "files": [
2092
+ "**/eslint.config.ts",
2093
+ "**/eslint.config.js",
2094
+ "**/vite.config.ts",
2095
+ "**/vite.config.js",
2096
+ "**/vitest.config.ts",
2097
+ "**/vitest.config.js",
2098
+ "**/rolldown.config.ts",
2099
+ "**/rolldown.config.js",
2100
+ "**/playwright.config.ts",
2101
+ "**/playwright.config.js",
2102
+ "**/.dependency-cruiser.ts",
2103
+ "**/.dependency-cruiser.js",
2104
+ "**/.i18nrc.ts",
2105
+ "**/.i18nrc.js"
2106
+ ],
2107
+ "rules": {
2108
+ "eslint-js/no-restricted-exports": "off"
2109
+ }
2110
+ },
2111
+ {
2112
+ "files": [
2113
+ "**/*.ts",
2114
+ "**/*.tsx",
2115
+ "**/*.mts",
2116
+ "**/*.cts"
2117
+ ],
2118
+ "rules": {
2119
+ "eslint-js/no-restricted-syntax": [
2120
+ "error",
2121
+ {
2122
+ "selector": "MemberExpression[object.name='React']",
2123
+ "message": "Do not use `React.*`. Use named imports instead."
2124
+ },
2125
+ {
2126
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2127
+ "message": "Do not use `React.*` types. Use named imports instead."
2128
+ },
2129
+ {
2130
+ "selector": "ExportNamespaceSpecifier",
2131
+ "message": "Usage of 'export * as …' is forbidden."
2132
+ },
2133
+ {
2134
+ "selector": "ExportAllDeclaration",
2135
+ "message": "Usage of `export * from` is forbidden."
2136
+ },
2137
+ {
2138
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2139
+ "message": "Do not use `import * as ...` from relative paths."
2140
+ }
2141
+ ]
2142
+ }
2143
+ },
2043
2144
  {
2044
2145
  "files": [
2045
2146
  "**/*.ts",
@@ -2052,13 +2153,11 @@
2052
2153
  "getter-return": "off",
2053
2154
  "no-class-assign": "off",
2054
2155
  "no-const-assign": "off",
2055
- "no-dupe-args": "off",
2056
2156
  "no-dupe-class-members": "off",
2057
2157
  "no-dupe-keys": "off",
2058
2158
  "no-func-assign": "off",
2059
2159
  "no-import-assign": "off",
2060
2160
  "no-new-native-nonconstructor": "off",
2061
- "no-new-symbol": "off",
2062
2161
  "no-obj-calls": "off",
2063
2162
  "no-redeclare": "off",
2064
2163
  "no-setter-return": "off",
@@ -2072,7 +2171,6 @@
2072
2171
  "prefer-rest-params": "error",
2073
2172
  "prefer-spread": "error",
2074
2173
  "no-array-constructor": "off",
2075
- "no-unused-expressions": "off",
2076
2174
  "no-unused-vars": "off",
2077
2175
  "@typescript-eslint/no-array-constructor": "error",
2078
2176
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2088,11 +2186,11 @@
2088
2186
  "@typescript-eslint/prefer-as-const": "error",
2089
2187
  "@typescript-eslint/prefer-namespace-keyword": "error",
2090
2188
  "@typescript-eslint/triple-slash-reference": "error",
2091
- "@typescript-eslint/explicit-function-return-type": 0,
2092
- "@typescript-eslint/no-use-before-define": 0,
2093
- "@typescript-eslint/no-empty-function": 0,
2189
+ "@typescript-eslint/explicit-function-return-type": "off",
2190
+ "@typescript-eslint/no-use-before-define": "off",
2191
+ "@typescript-eslint/no-empty-function": "off",
2094
2192
  "@typescript-eslint/no-unused-vars": [
2095
- 2,
2193
+ "error",
2096
2194
  {
2097
2195
  "varsIgnorePattern": "^_.*$",
2098
2196
  "argsIgnorePattern": "^_.*$"
@@ -2131,34 +2229,8 @@
2131
2229
  }
2132
2230
  }
2133
2231
  ],
2134
- "@typescript-eslint/explicit-member-accessibility": "off",
2135
- "@typescript-eslint/interface-name-prefix": "off",
2136
- "@typescript-eslint/member-ordering": "off",
2137
2232
  "@typescript-eslint/no-inferrable-types": "off",
2138
2233
  "@typescript-eslint/no-non-null-assertion": "off",
2139
- "no-restricted-syntax": [
2140
- "error",
2141
- {
2142
- "selector": "MemberExpression[object.name='React']",
2143
- "message": "Do not use `React.*`. Use named imports instead."
2144
- },
2145
- {
2146
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2147
- "message": "Do not use `React.*` types. Use named imports instead."
2148
- },
2149
- {
2150
- "selector": "ExportNamespaceSpecifier",
2151
- "message": "Usage of 'export * as …' is forbidden."
2152
- },
2153
- {
2154
- "selector": "ExportAllDeclaration",
2155
- "message": "Usage of `export * from` is forbidden."
2156
- },
2157
- {
2158
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2159
- "message": "Do not use `import * as ...` from relative paths."
2160
- }
2161
- ],
2162
2234
  "@typescript-eslint/consistent-type-imports": [
2163
2235
  "error",
2164
2236
  {
package/dist/esm.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"
@@ -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"
@@ -642,6 +646,49 @@
642
646
  "no-delete-var": "error",
643
647
  "no-duplicate-imports": "error",
644
648
  "prefer-const": "off",
649
+ "eslint-js/no-duplicate-imports": [
650
+ "error",
651
+ {
652
+ "includeExports": true
653
+ }
654
+ ],
655
+ "eslint-js/no-console": [
656
+ "error",
657
+ {
658
+ "allow": [
659
+ "warn",
660
+ "error"
661
+ ]
662
+ }
663
+ ],
664
+ "eslint-js/no-octal": "error",
665
+ "eslint-js/no-dupe-args": "error",
666
+ "eslint-js/no-restricted-exports": [
667
+ "error",
668
+ {
669
+ "restrictDefaultExports": {
670
+ "direct": true,
671
+ "named": true,
672
+ "defaultFrom": true,
673
+ "namedFrom": true,
674
+ "namespaceFrom": true
675
+ }
676
+ }
677
+ ],
678
+ "eslint-js/no-restricted-syntax": [
679
+ "error",
680
+ {
681
+ "selector": "MemberExpression[object.name='React']",
682
+ "message": "Do not use `React.*`. Use named imports instead."
683
+ },
684
+ {
685
+ "selector": "MemberExpression[object.name='ReactDOM']",
686
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
687
+ }
688
+ ],
689
+ "eslint-js/no-negated-condition": "error",
690
+ "eslint-js/prefer-const": "off",
691
+ "eslint-js/no-octal-escape": "error",
645
692
  "headers/header-format": [
646
693
  "error",
647
694
  {
@@ -969,7 +1016,6 @@
969
1016
  "playwright/valid-expect-in-promise": "error",
970
1017
  "playwright/valid-test-tags": "error",
971
1018
  "playwright/valid-title": "error",
972
- "no-unused-expressions": "off",
973
1019
  "chai-friendly/no-unused-expressions": "error",
974
1020
  "no-only-tests/no-only-tests": [
975
1021
  "error",
@@ -2063,6 +2109,60 @@
2063
2109
  ]
2064
2110
  }
2065
2111
  },
2112
+ {
2113
+ "files": [
2114
+ "**/eslint.config.ts",
2115
+ "**/eslint.config.js",
2116
+ "**/vite.config.ts",
2117
+ "**/vite.config.js",
2118
+ "**/vitest.config.ts",
2119
+ "**/vitest.config.js",
2120
+ "**/rolldown.config.ts",
2121
+ "**/rolldown.config.js",
2122
+ "**/playwright.config.ts",
2123
+ "**/playwright.config.js",
2124
+ "**/.dependency-cruiser.ts",
2125
+ "**/.dependency-cruiser.js",
2126
+ "**/.i18nrc.ts",
2127
+ "**/.i18nrc.js"
2128
+ ],
2129
+ "rules": {
2130
+ "eslint-js/no-restricted-exports": "off"
2131
+ }
2132
+ },
2133
+ {
2134
+ "files": [
2135
+ "**/*.ts",
2136
+ "**/*.tsx",
2137
+ "**/*.mts",
2138
+ "**/*.cts"
2139
+ ],
2140
+ "rules": {
2141
+ "eslint-js/no-restricted-syntax": [
2142
+ "error",
2143
+ {
2144
+ "selector": "MemberExpression[object.name='React']",
2145
+ "message": "Do not use `React.*`. Use named imports instead."
2146
+ },
2147
+ {
2148
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2149
+ "message": "Do not use `React.*` types. Use named imports instead."
2150
+ },
2151
+ {
2152
+ "selector": "ExportNamespaceSpecifier",
2153
+ "message": "Usage of 'export * as …' is forbidden."
2154
+ },
2155
+ {
2156
+ "selector": "ExportAllDeclaration",
2157
+ "message": "Usage of `export * from` is forbidden."
2158
+ },
2159
+ {
2160
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2161
+ "message": "Do not use `import * as ...` from relative paths."
2162
+ }
2163
+ ]
2164
+ }
2165
+ },
2066
2166
  {
2067
2167
  "files": [
2068
2168
  "**/*.ts",
@@ -2075,13 +2175,11 @@
2075
2175
  "getter-return": "off",
2076
2176
  "no-class-assign": "off",
2077
2177
  "no-const-assign": "off",
2078
- "no-dupe-args": "off",
2079
2178
  "no-dupe-class-members": "off",
2080
2179
  "no-dupe-keys": "off",
2081
2180
  "no-func-assign": "off",
2082
2181
  "no-import-assign": "off",
2083
2182
  "no-new-native-nonconstructor": "off",
2084
- "no-new-symbol": "off",
2085
2183
  "no-obj-calls": "off",
2086
2184
  "no-redeclare": "off",
2087
2185
  "no-setter-return": "off",
@@ -2095,7 +2193,6 @@
2095
2193
  "prefer-rest-params": "error",
2096
2194
  "prefer-spread": "error",
2097
2195
  "no-array-constructor": "off",
2098
- "no-unused-expressions": "off",
2099
2196
  "no-unused-vars": "off",
2100
2197
  "@typescript-eslint/no-array-constructor": "error",
2101
2198
  "@typescript-eslint/no-duplicate-enum-values": "error",
@@ -2111,11 +2208,11 @@
2111
2208
  "@typescript-eslint/prefer-as-const": "error",
2112
2209
  "@typescript-eslint/prefer-namespace-keyword": "error",
2113
2210
  "@typescript-eslint/triple-slash-reference": "error",
2114
- "@typescript-eslint/explicit-function-return-type": 0,
2115
- "@typescript-eslint/no-use-before-define": 0,
2116
- "@typescript-eslint/no-empty-function": 0,
2211
+ "@typescript-eslint/explicit-function-return-type": "off",
2212
+ "@typescript-eslint/no-use-before-define": "off",
2213
+ "@typescript-eslint/no-empty-function": "off",
2117
2214
  "@typescript-eslint/no-unused-vars": [
2118
- 2,
2215
+ "error",
2119
2216
  {
2120
2217
  "varsIgnorePattern": "^_.*$",
2121
2218
  "argsIgnorePattern": "^_.*$"
@@ -2154,34 +2251,8 @@
2154
2251
  }
2155
2252
  }
2156
2253
  ],
2157
- "@typescript-eslint/explicit-member-accessibility": "off",
2158
- "@typescript-eslint/interface-name-prefix": "off",
2159
- "@typescript-eslint/member-ordering": "off",
2160
2254
  "@typescript-eslint/no-inferrable-types": "off",
2161
2255
  "@typescript-eslint/no-non-null-assertion": "off",
2162
- "no-restricted-syntax": [
2163
- "error",
2164
- {
2165
- "selector": "MemberExpression[object.name='React']",
2166
- "message": "Do not use `React.*`. Use named imports instead."
2167
- },
2168
- {
2169
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2170
- "message": "Do not use `React.*` types. Use named imports instead."
2171
- },
2172
- {
2173
- "selector": "ExportNamespaceSpecifier",
2174
- "message": "Usage of 'export * as …' is forbidden."
2175
- },
2176
- {
2177
- "selector": "ExportAllDeclaration",
2178
- "message": "Usage of `export * from` is forbidden."
2179
- },
2180
- {
2181
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2182
- "message": "Do not use `import * as ...` from relative paths."
2183
- }
2184
- ],
2185
2256
  "@typescript-eslint/consistent-type-imports": [
2186
2257
  "error",
2187
2258
  {