Skip to content

Commit a5ba37b

Browse files
committed
feat: cleanup main types
1 parent 041dc1b commit a5ba37b

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

index.d.ts

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
import type { Linter, Rule } from 'eslint';
1+
import type { TSESLint } from '@typescript-eslint/utils';
2+
3+
import { SupportedTestingFramework } from './lib/utils';
24

35
declare const plugin: {
46
meta: {
57
name: string;
68
version: string;
79
};
8-
configs: {
9-
angular: Linter.LegacyConfig;
10-
dom: Linter.LegacyConfig;
11-
marko: Linter.LegacyConfig;
12-
react: Linter.LegacyConfig;
13-
vue: Linter.LegacyConfig;
14-
'flat/angular': Linter.FlatConfig;
15-
'flat/dom': Linter.FlatConfig;
16-
'flat/marko': Linter.FlatConfig;
17-
'flat/react': Linter.FlatConfig;
18-
'flat/vue': Linter.FlatConfig;
19-
};
20-
rules: {
21-
[key: string]: Rule.RuleModule;
22-
};
10+
configs: Record<SupportedTestingFramework, TSESLint.ClassicConfig> &
11+
Record<`flat/${SupportedTestingFramework}`, TSESLint.FlatConfig>;
12+
rules: Record<string, TSESLint.RuleModule>;
2313
};
2414

2515
export = plugin;

0 commit comments

Comments
 (0)