Skip to content

Commit 4d2e086

Browse files
irsootiJounQin
authored andcommitted
feat: prefer Config over FlatConfig when they're equal
1 parent 9e37575 commit 4d2e086

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

recommended.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
import { Linter } from 'eslint';
22

3-
declare const recommendedConfig: Linter.FlatConfig;
3+
// prettier-ignore
4+
type IFEqual<A, B, X, Y> =
5+
(<G>() => G extends A & G | G ? 1 : 2) extends
6+
(<G>() => G extends B & G | G ? 1 : 2)
7+
? A
8+
: B;
9+
10+
declare const recommendedConfig: IFEqual<
11+
Linter.Config,
12+
Linter.FlatConfig,
13+
Linter.Config,
14+
Linter.FlatConfig
15+
>;
416

517
export = recommendedConfig;

0 commit comments

Comments
 (0)