From e155d9f1e8216c77fee0383fcd2548bf5914e822 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 6 Dec 2024 15:49:13 +1300 Subject: [PATCH] fix: use valid config type for supporting both ESLint v8 and v9 Signed-off-by: Gareth Jones --- index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index 88c1baad..1f4e5e7e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,12 +12,12 @@ declare const plugin: { react: Linter.LegacyConfig; svelte: Linter.LegacyConfig; vue: Linter.LegacyConfig; - 'flat/angular': Linter.Config; - 'flat/dom': Linter.Config; - 'flat/marko': Linter.Config; - 'flat/react': Linter.Config; - 'flat/svelte': Linter.Config; - 'flat/vue': Linter.Config; + 'flat/angular': Linter.FlatConfig; + 'flat/dom': Linter.FlatConfig; + 'flat/marko': Linter.FlatConfig; + 'flat/react': Linter.FlatConfig; + 'flat/svelte': Linter.FlatConfig; + 'flat/vue': Linter.FlatConfig; }; rules: { [key: string]: Rule.RuleModule;