We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f407b64 commit a23c4c3Copy full SHA for a23c4c3
packages/stencil-library/eslint-plugin/src/types/plugin.ts
@@ -4,20 +4,16 @@ import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint";
4
5
type RulesRecord = Record<string, RuleModule<string, readonly unknown[]>>;
6
7
-type FlatConfigs = {
8
- flat?: {
9
- recommended?: FlatConfig.Config[];
10
- [key: string]: FlatConfig.Config[] | undefined;
11
- };
12
-};
13
-
14
export type Plugin = {
15
- meta?: {
+ meta: {
16
name: string;
17
version: string;
18
};
19
rules: RulesRecord;
20
- configs?: {
21
- recommended?: Linter.Config;
22
- } & FlatConfigs;
+ configs: {
+ recommended: Linter.Config;
+ flat: {
+ recommended: FlatConfig.Config[];
+ }
+ };
23
0 commit comments