We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786e56e commit 6848158Copy full SHA for 6848158
index.d.ts
@@ -1,19 +1,15 @@
1
-import { type Linter, type Rule } from "eslint";
+import type { Linter, Rule } from "eslint";
2
+
3
+type SupportedConfigs = 'all' | 'recommended';
4
5
declare const plugin: {
6
meta: {
7
name: string;
8
version: string;
9
};
- configs: {
- all: Linter.LegacyConfig;
10
- recommended: Linter.LegacyConfig;
11
- "flat/all": Linter.FlatConfig;
12
- "flat/recommended": Linter.FlatConfig;
13
- };
14
- rules: {
15
- [key: string]: Rule.RuleModule;
16
+ configs: Record<SupportedConfigs, Linter.LegacyConfig> &
+ Record<`flat/${SupportedConfigs}`, Linter.FlatConfig>;
+ rules: Record<string, Rule.RuleModule>;
17
18
19
export = plugin;
0 commit comments