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;