From a5ba37b64e55ed35cefb4a5a80bc14a6af8e74f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 20 Nov 2024 17:12:05 +0100 Subject: [PATCH] feat: cleanup main types --- index.d.ts | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/index.d.ts b/index.d.ts index 360dbbfa..6897c877 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,25 +1,15 @@ -import type { Linter, Rule } from 'eslint'; +import type { TSESLint } from '@typescript-eslint/utils'; + +import { SupportedTestingFramework } from './lib/utils'; declare const plugin: { meta: { name: string; version: string; }; - configs: { - angular: Linter.LegacyConfig; - dom: Linter.LegacyConfig; - marko: Linter.LegacyConfig; - react: Linter.LegacyConfig; - vue: Linter.LegacyConfig; - 'flat/angular': Linter.FlatConfig; - 'flat/dom': Linter.FlatConfig; - 'flat/marko': Linter.FlatConfig; - 'flat/react': Linter.FlatConfig; - 'flat/vue': Linter.FlatConfig; - }; - rules: { - [key: string]: Rule.RuleModule; - }; + configs: Record & + Record<`flat/${SupportedTestingFramework}`, TSESLint.FlatConfig>; + rules: Record; }; export = plugin;