Skip to content

Commit a23c4c3

Browse files
committed
Removed optional form config
1 parent f407b64 commit a23c4c3

File tree

1 file changed

+7
-11
lines changed
  • packages/stencil-library/eslint-plugin/src/types

1 file changed

+7
-11
lines changed

packages/stencil-library/eslint-plugin/src/types/plugin.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@ import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint";
44

55
type RulesRecord = Record<string, RuleModule<string, readonly unknown[]>>;
66

7-
type FlatConfigs = {
8-
flat?: {
9-
recommended?: FlatConfig.Config[];
10-
[key: string]: FlatConfig.Config[] | undefined;
11-
};
12-
};
13-
147
export type Plugin = {
15-
meta?: {
8+
meta: {
169
name: string;
1710
version: string;
1811
};
1912
rules: RulesRecord;
20-
configs?: {
21-
recommended?: Linter.Config;
22-
} & FlatConfigs;
13+
configs: {
14+
recommended: Linter.Config;
15+
flat: {
16+
recommended: FlatConfig.Config[];
17+
}
18+
};
2319
};

0 commit comments

Comments
 (0)