File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-plugin-import-x " : patch
3
+ ---
4
+
5
+ fix(types): exported ` importX ` should also have ` flatConfigs ` as property
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const configs = {
148
148
} satisfies Record < string , PluginConfig >
149
149
150
150
// Base Plugin Object
151
- const plugin = {
151
+ const plugin_ = {
152
152
meta,
153
153
configs,
154
154
rules,
@@ -157,6 +157,8 @@ const plugin = {
157
157
createNodeResolver,
158
158
}
159
159
160
+ const plugin = plugin_ as typeof plugin_ & { flatConfigs : typeof flatConfigs }
161
+
160
162
// Create flat configs (Only ones that declare plugins and parser options need to be different from the legacy config)
161
163
const createFlatConfig = (
162
164
baseConfig : PluginFlatBaseConfig ,
@@ -183,7 +185,9 @@ const flatConfigs = {
183
185
typescript : createFlatConfig ( typescriptFlat , 'typescript' ) ,
184
186
} satisfies Record < string , PluginFlatConfig >
185
187
186
- export default Object . assign ( plugin , { flatConfigs } )
188
+ plugin . flatConfigs = flatConfigs
189
+
190
+ export default plugin
187
191
188
192
export {
189
193
meta ,
You can’t perform that action at this time.
0 commit comments