@gooddata/oxlint-config 11.57.0-alpha.1 → 11.57.0-alpha.3
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 +2 -2
- package/dist/base.json +105 -33
- package/dist/browser-esm.json +105 -33
- package/dist/esm-playwright.json +105 -34
- package/dist/esm-react-playwright.json +105 -34
- package/dist/esm-react-storybook.json +105 -33
- package/dist/esm-react-vitest-rtl.json +105 -33
- package/dist/esm-react-vitest.json +105 -33
- package/dist/esm-react.json +105 -33
- package/dist/esm-vitest-rtl.json +105 -33
- package/dist/esm-vitest.json +105 -33
- package/dist/esm.json +105 -33
- package/dist/react-playwright.json +105 -34
- package/dist/react-vitest-rtl.json +105 -33
- package/dist/react-vitest.json +105 -33
- package/dist/react.json +105 -33
- package/package.json +8 -8
|
@@ -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
|
{
|
|
@@ -2076,6 +2123,60 @@
|
|
|
2076
2123
|
]
|
|
2077
2124
|
}
|
|
2078
2125
|
},
|
|
2126
|
+
{
|
|
2127
|
+
"files": [
|
|
2128
|
+
"**/eslint.config.ts",
|
|
2129
|
+
"**/eslint.config.js",
|
|
2130
|
+
"**/vite.config.ts",
|
|
2131
|
+
"**/vite.config.js",
|
|
2132
|
+
"**/vitest.config.ts",
|
|
2133
|
+
"**/vitest.config.js",
|
|
2134
|
+
"**/rolldown.config.ts",
|
|
2135
|
+
"**/rolldown.config.js",
|
|
2136
|
+
"**/playwright.config.ts",
|
|
2137
|
+
"**/playwright.config.js",
|
|
2138
|
+
"**/.dependency-cruiser.ts",
|
|
2139
|
+
"**/.dependency-cruiser.js",
|
|
2140
|
+
"**/.i18nrc.ts",
|
|
2141
|
+
"**/.i18nrc.js"
|
|
2142
|
+
],
|
|
2143
|
+
"rules": {
|
|
2144
|
+
"eslint-js/no-restricted-exports": "off"
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
"files": [
|
|
2149
|
+
"**/*.ts",
|
|
2150
|
+
"**/*.tsx",
|
|
2151
|
+
"**/*.mts",
|
|
2152
|
+
"**/*.cts"
|
|
2153
|
+
],
|
|
2154
|
+
"rules": {
|
|
2155
|
+
"eslint-js/no-restricted-syntax": [
|
|
2156
|
+
"error",
|
|
2157
|
+
{
|
|
2158
|
+
"selector": "MemberExpression[object.name='React']",
|
|
2159
|
+
"message": "Do not use `React.*`. Use named imports instead."
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
|
|
2163
|
+
"message": "Do not use `React.*` types. Use named imports instead."
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
"selector": "ExportNamespaceSpecifier",
|
|
2167
|
+
"message": "Usage of 'export * as …' is forbidden."
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"selector": "ExportAllDeclaration",
|
|
2171
|
+
"message": "Usage of `export * from` is forbidden."
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
|
|
2175
|
+
"message": "Do not use `import * as ...` from relative paths."
|
|
2176
|
+
}
|
|
2177
|
+
]
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2079
2180
|
{
|
|
2080
2181
|
"files": [
|
|
2081
2182
|
"**/*.ts",
|
|
@@ -2088,13 +2189,11 @@
|
|
|
2088
2189
|
"getter-return": "off",
|
|
2089
2190
|
"no-class-assign": "off",
|
|
2090
2191
|
"no-const-assign": "off",
|
|
2091
|
-
"no-dupe-args": "off",
|
|
2092
2192
|
"no-dupe-class-members": "off",
|
|
2093
2193
|
"no-dupe-keys": "off",
|
|
2094
2194
|
"no-func-assign": "off",
|
|
2095
2195
|
"no-import-assign": "off",
|
|
2096
2196
|
"no-new-native-nonconstructor": "off",
|
|
2097
|
-
"no-new-symbol": "off",
|
|
2098
2197
|
"no-obj-calls": "off",
|
|
2099
2198
|
"no-redeclare": "off",
|
|
2100
2199
|
"no-setter-return": "off",
|
|
@@ -2108,7 +2207,6 @@
|
|
|
2108
2207
|
"prefer-rest-params": "error",
|
|
2109
2208
|
"prefer-spread": "error",
|
|
2110
2209
|
"no-array-constructor": "off",
|
|
2111
|
-
"no-unused-expressions": "off",
|
|
2112
2210
|
"no-unused-vars": "off",
|
|
2113
2211
|
"@typescript-eslint/no-array-constructor": "error",
|
|
2114
2212
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
@@ -2124,11 +2222,11 @@
|
|
|
2124
2222
|
"@typescript-eslint/prefer-as-const": "error",
|
|
2125
2223
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
2126
2224
|
"@typescript-eslint/triple-slash-reference": "error",
|
|
2127
|
-
"@typescript-eslint/explicit-function-return-type":
|
|
2128
|
-
"@typescript-eslint/no-use-before-define":
|
|
2129
|
-
"@typescript-eslint/no-empty-function":
|
|
2225
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
2226
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
2227
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
2130
2228
|
"@typescript-eslint/no-unused-vars": [
|
|
2131
|
-
|
|
2229
|
+
"error",
|
|
2132
2230
|
{
|
|
2133
2231
|
"varsIgnorePattern": "^_.*$",
|
|
2134
2232
|
"argsIgnorePattern": "^_.*$"
|
|
@@ -2167,34 +2265,8 @@
|
|
|
2167
2265
|
}
|
|
2168
2266
|
}
|
|
2169
2267
|
],
|
|
2170
|
-
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
2171
|
-
"@typescript-eslint/interface-name-prefix": "off",
|
|
2172
|
-
"@typescript-eslint/member-ordering": "off",
|
|
2173
2268
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
2174
2269
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
2175
|
-
"no-restricted-syntax": [
|
|
2176
|
-
"error",
|
|
2177
|
-
{
|
|
2178
|
-
"selector": "MemberExpression[object.name='React']",
|
|
2179
|
-
"message": "Do not use `React.*`. Use named imports instead."
|
|
2180
|
-
},
|
|
2181
|
-
{
|
|
2182
|
-
"selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
|
|
2183
|
-
"message": "Do not use `React.*` types. Use named imports instead."
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
"selector": "ExportNamespaceSpecifier",
|
|
2187
|
-
"message": "Usage of 'export * as …' is forbidden."
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
"selector": "ExportAllDeclaration",
|
|
2191
|
-
"message": "Usage of `export * from` is forbidden."
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
"selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
|
|
2195
|
-
"message": "Do not use `import * as ...` from relative paths."
|
|
2196
|
-
}
|
|
2197
|
-
],
|
|
2198
2270
|
"@typescript-eslint/consistent-type-imports": [
|
|
2199
2271
|
"error",
|
|
2200
2272
|
{
|
package/dist/react-vitest.json
CHANGED
|
@@ -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"
|
|
@@ -635,6 +639,49 @@
|
|
|
635
639
|
"no-delete-var": "error",
|
|
636
640
|
"no-duplicate-imports": "error",
|
|
637
641
|
"prefer-const": "off",
|
|
642
|
+
"eslint-js/no-duplicate-imports": [
|
|
643
|
+
"error",
|
|
644
|
+
{
|
|
645
|
+
"includeExports": true
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"eslint-js/no-console": [
|
|
649
|
+
"error",
|
|
650
|
+
{
|
|
651
|
+
"allow": [
|
|
652
|
+
"warn",
|
|
653
|
+
"error"
|
|
654
|
+
]
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"eslint-js/no-octal": "error",
|
|
658
|
+
"eslint-js/no-dupe-args": "error",
|
|
659
|
+
"eslint-js/no-restricted-exports": [
|
|
660
|
+
"error",
|
|
661
|
+
{
|
|
662
|
+
"restrictDefaultExports": {
|
|
663
|
+
"direct": true,
|
|
664
|
+
"named": true,
|
|
665
|
+
"defaultFrom": true,
|
|
666
|
+
"namedFrom": true,
|
|
667
|
+
"namespaceFrom": true
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"eslint-js/no-restricted-syntax": [
|
|
672
|
+
"error",
|
|
673
|
+
{
|
|
674
|
+
"selector": "MemberExpression[object.name='React']",
|
|
675
|
+
"message": "Do not use `React.*`. Use named imports instead."
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"selector": "MemberExpression[object.name='ReactDOM']",
|
|
679
|
+
"message": "Do not use `ReactDOM.*`. Use named imports instead."
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"eslint-js/no-negated-condition": "error",
|
|
683
|
+
"eslint-js/prefer-const": "off",
|
|
684
|
+
"eslint-js/no-octal-escape": "error",
|
|
638
685
|
"headers/header-format": [
|
|
639
686
|
"error",
|
|
640
687
|
{
|
|
@@ -2035,6 +2082,60 @@
|
|
|
2035
2082
|
]
|
|
2036
2083
|
}
|
|
2037
2084
|
},
|
|
2085
|
+
{
|
|
2086
|
+
"files": [
|
|
2087
|
+
"**/eslint.config.ts",
|
|
2088
|
+
"**/eslint.config.js",
|
|
2089
|
+
"**/vite.config.ts",
|
|
2090
|
+
"**/vite.config.js",
|
|
2091
|
+
"**/vitest.config.ts",
|
|
2092
|
+
"**/vitest.config.js",
|
|
2093
|
+
"**/rolldown.config.ts",
|
|
2094
|
+
"**/rolldown.config.js",
|
|
2095
|
+
"**/playwright.config.ts",
|
|
2096
|
+
"**/playwright.config.js",
|
|
2097
|
+
"**/.dependency-cruiser.ts",
|
|
2098
|
+
"**/.dependency-cruiser.js",
|
|
2099
|
+
"**/.i18nrc.ts",
|
|
2100
|
+
"**/.i18nrc.js"
|
|
2101
|
+
],
|
|
2102
|
+
"rules": {
|
|
2103
|
+
"eslint-js/no-restricted-exports": "off"
|
|
2104
|
+
}
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"files": [
|
|
2108
|
+
"**/*.ts",
|
|
2109
|
+
"**/*.tsx",
|
|
2110
|
+
"**/*.mts",
|
|
2111
|
+
"**/*.cts"
|
|
2112
|
+
],
|
|
2113
|
+
"rules": {
|
|
2114
|
+
"eslint-js/no-restricted-syntax": [
|
|
2115
|
+
"error",
|
|
2116
|
+
{
|
|
2117
|
+
"selector": "MemberExpression[object.name='React']",
|
|
2118
|
+
"message": "Do not use `React.*`. Use named imports instead."
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
|
|
2122
|
+
"message": "Do not use `React.*` types. Use named imports instead."
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"selector": "ExportNamespaceSpecifier",
|
|
2126
|
+
"message": "Usage of 'export * as …' is forbidden."
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"selector": "ExportAllDeclaration",
|
|
2130
|
+
"message": "Usage of `export * from` is forbidden."
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
|
|
2134
|
+
"message": "Do not use `import * as ...` from relative paths."
|
|
2135
|
+
}
|
|
2136
|
+
]
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
2038
2139
|
{
|
|
2039
2140
|
"files": [
|
|
2040
2141
|
"**/*.ts",
|
|
@@ -2047,13 +2148,11 @@
|
|
|
2047
2148
|
"getter-return": "off",
|
|
2048
2149
|
"no-class-assign": "off",
|
|
2049
2150
|
"no-const-assign": "off",
|
|
2050
|
-
"no-dupe-args": "off",
|
|
2051
2151
|
"no-dupe-class-members": "off",
|
|
2052
2152
|
"no-dupe-keys": "off",
|
|
2053
2153
|
"no-func-assign": "off",
|
|
2054
2154
|
"no-import-assign": "off",
|
|
2055
2155
|
"no-new-native-nonconstructor": "off",
|
|
2056
|
-
"no-new-symbol": "off",
|
|
2057
2156
|
"no-obj-calls": "off",
|
|
2058
2157
|
"no-redeclare": "off",
|
|
2059
2158
|
"no-setter-return": "off",
|
|
@@ -2067,7 +2166,6 @@
|
|
|
2067
2166
|
"prefer-rest-params": "error",
|
|
2068
2167
|
"prefer-spread": "error",
|
|
2069
2168
|
"no-array-constructor": "off",
|
|
2070
|
-
"no-unused-expressions": "off",
|
|
2071
2169
|
"no-unused-vars": "off",
|
|
2072
2170
|
"@typescript-eslint/no-array-constructor": "error",
|
|
2073
2171
|
"@typescript-eslint/no-duplicate-enum-values": "error",
|
|
@@ -2083,11 +2181,11 @@
|
|
|
2083
2181
|
"@typescript-eslint/prefer-as-const": "error",
|
|
2084
2182
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
2085
2183
|
"@typescript-eslint/triple-slash-reference": "error",
|
|
2086
|
-
"@typescript-eslint/explicit-function-return-type":
|
|
2087
|
-
"@typescript-eslint/no-use-before-define":
|
|
2088
|
-
"@typescript-eslint/no-empty-function":
|
|
2184
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
2185
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
2186
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
2089
2187
|
"@typescript-eslint/no-unused-vars": [
|
|
2090
|
-
|
|
2188
|
+
"error",
|
|
2091
2189
|
{
|
|
2092
2190
|
"varsIgnorePattern": "^_.*$",
|
|
2093
2191
|
"argsIgnorePattern": "^_.*$"
|
|
@@ -2126,34 +2224,8 @@
|
|
|
2126
2224
|
}
|
|
2127
2225
|
}
|
|
2128
2226
|
],
|
|
2129
|
-
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
2130
|
-
"@typescript-eslint/interface-name-prefix": "off",
|
|
2131
|
-
"@typescript-eslint/member-ordering": "off",
|
|
2132
2227
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
2133
2228
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
2134
|
-
"no-restricted-syntax": [
|
|
2135
|
-
"error",
|
|
2136
|
-
{
|
|
2137
|
-
"selector": "MemberExpression[object.name='React']",
|
|
2138
|
-
"message": "Do not use `React.*`. Use named imports instead."
|
|
2139
|
-
},
|
|
2140
|
-
{
|
|
2141
|
-
"selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
|
|
2142
|
-
"message": "Do not use `React.*` types. Use named imports instead."
|
|
2143
|
-
},
|
|
2144
|
-
{
|
|
2145
|
-
"selector": "ExportNamespaceSpecifier",
|
|
2146
|
-
"message": "Usage of 'export * as …' is forbidden."
|
|
2147
|
-
},
|
|
2148
|
-
{
|
|
2149
|
-
"selector": "ExportAllDeclaration",
|
|
2150
|
-
"message": "Usage of `export * from` is forbidden."
|
|
2151
|
-
},
|
|
2152
|
-
{
|
|
2153
|
-
"selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
|
|
2154
|
-
"message": "Do not use `import * as ...` from relative paths."
|
|
2155
|
-
}
|
|
2156
|
-
],
|
|
2157
2229
|
"@typescript-eslint/consistent-type-imports": [
|
|
2158
2230
|
"error",
|
|
2159
2231
|
{
|
package/dist/react.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":
|
|
2055
|
-
"@typescript-eslint/no-use-before-define":
|
|
2056
|
-
"@typescript-eslint/no-empty-function":
|
|
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
|
-
|
|
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
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/oxlint-config",
|
|
3
|
-
"version": "11.57.0-alpha.
|
|
3
|
+
"version": "11.57.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "GoodData",
|
|
6
6
|
"repository": {
|
|
@@ -36,12 +36,10 @@
|
|
|
36
36
|
"./esm-react-vitest-rtl": "./dist/esm-react-vitest-rtl.json"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint/js": "9.28.0",
|
|
40
39
|
"@testing-library/dom": "10.4.1",
|
|
41
40
|
"@types/node": "24.12.0",
|
|
42
41
|
"@typescript-eslint/eslint-plugin": "8.58.0",
|
|
43
42
|
"@typescript-eslint/parser": "8.58.0",
|
|
44
|
-
"@vitest/eslint-plugin": "1.6.19",
|
|
45
43
|
"eslint": "^9.39.2",
|
|
46
44
|
"eslint-plugin-chai-friendly": "1.1.0",
|
|
47
45
|
"eslint-plugin-headers": "1.3.3",
|
|
@@ -55,22 +53,24 @@
|
|
|
55
53
|
"globals": "17.2.0",
|
|
56
54
|
"jiti": "2.6.1",
|
|
57
55
|
"oxfmt": "0.66.0",
|
|
58
|
-
"oxlint": "1.
|
|
59
|
-
"oxlint-
|
|
56
|
+
"oxlint": "1.67.0",
|
|
57
|
+
"oxlint-plugin-eslint": "1.82.0",
|
|
58
|
+
"oxlint-tsgolint": "0.22.1",
|
|
60
59
|
"react": "19.1.1",
|
|
61
60
|
"react-dom": "19.1.1",
|
|
62
61
|
"storybook": "^10.5.6",
|
|
63
62
|
"typescript": "7.0.2",
|
|
64
63
|
"vite-node": "5.3.0",
|
|
65
|
-
"@gooddata/eslint-config": "11.57.0-alpha.
|
|
66
|
-
"@gooddata/lint-config": "11.57.0-alpha.
|
|
64
|
+
"@gooddata/eslint-config": "11.57.0-alpha.3",
|
|
65
|
+
"@gooddata/lint-config": "11.57.0-alpha.3"
|
|
67
66
|
},
|
|
68
67
|
"peerDependencies": {
|
|
69
68
|
"eslint-plugin-headers": "1.3.3",
|
|
70
69
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
71
70
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
72
71
|
"oxlint": "^1.57.0",
|
|
73
|
-
"oxlint-
|
|
72
|
+
"oxlint-plugin-eslint": "1.82.0",
|
|
73
|
+
"oxlint-tsgolint": "0.22.1"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"_phase:build": "npm run build",
|