Skip to content

Commit

Permalink
Update packages/compat/src/types.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
nzakas and mdjermanovic committed May 6, 2024
1 parent 2846cfd commit eb1d6c6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/compat/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
export type FixupLegacyRuleDefinition = (context: Object) => Object;

export interface FixupRuleDefinition {
meta: Object;
meta?: Object;
create(context: Object): Object;
}

export interface FixupPluginDefinition {
meta: Object;
rules: Record<string, FixupRuleDefinition>;
configs: Record<string, Object>;
processors: Record<string, Object>;
meta?: Object;
rules?: Record<string, FixupRuleDefinition>;
configs?: Record<string, Object>;
processors?: Record<string, Object>;
}

export interface FixupConfig {
files: Array<string>;
ignores: Array<string>;
name: string;
languageOptions: Record<string, any>;
linterOptions: Record<string, any>;
processor: string|Object;
plugins: Record<string, FixupPluginDefinition>;
rules: Record<string, FixupRuleDefinition>;
files?: Array<string>;
ignores?: Array<string>;
name?: string;
languageOptions?: Record<string, any>;
linterOptions?: Record<string, any>;
processor?: string|Object;
plugins?: Record<string, FixupPluginDefinition>;
rules?: Record<string, any>;
}

export type FixupConfigArray = Array<FixupConfig>;

0 comments on commit eb1d6c6

Please sign in to comment.