Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Apr 28, 2023
1 parent 87579fb commit ff66d06
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/types/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export type SupportedDeps = 'docker' | 'npm';
export type RuleDependency = {
type: SupportedDeps;
} & (
| {
| {
name: string;
}
| { name: RegExp; example: string }
);
| { name: RegExp; example: string }
);
export type Rule = RuleFiles & {
tech: AllowedKeys;
dependencies?: RuleDependency[];
Expand All @@ -21,20 +21,20 @@ export type Rule = RuleFiles & {
type RuleFiles =
| never
| {
files: RegExp;
example: string;
}
files: RegExp;
example: string;
}
| {
files: string[];
}
files: string[];
}
| {
files?: never;
}
files?: never;
}
| {
matchFullPath: boolean;
files: RegExp;
example: string;
};
matchFullPath: boolean;
files: RegExp;
example: string;
};

export type ComponentMatcher = (
files: ProviderFile[],
Expand Down

0 comments on commit ff66d06

Please sign in to comment.