From bd2ec917816fc9852eed6f7436056a18c3dd3e69 Mon Sep 17 00:00:00 2001 From: auvred Date: Fri, 8 Mar 2024 13:03:20 +0300 Subject: [PATCH] fix(typescript-eslint): export `ConfigWithExtends` type --- packages/typescript-eslint/src/config-helper.ts | 2 +- packages/typescript-eslint/src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/typescript-eslint/src/config-helper.ts b/packages/typescript-eslint/src/config-helper.ts index dd366b70cdbf..61d63b8a6b82 100644 --- a/packages/typescript-eslint/src/config-helper.ts +++ b/packages/typescript-eslint/src/config-helper.ts @@ -18,7 +18,7 @@ TODO - convert this to /utils/ts-eslint */ import type { TSESLint } from '@typescript-eslint/utils'; -interface ConfigWithExtends extends TSESLint.FlatConfig.Config { +export interface ConfigWithExtends extends TSESLint.FlatConfig.Config { /** * Allows you to "extend" a set of configs similar to `extends` from the * classic configs. diff --git a/packages/typescript-eslint/src/index.ts b/packages/typescript-eslint/src/index.ts index 078b4c670117..20074daf4b42 100644 --- a/packages/typescript-eslint/src/index.ts +++ b/packages/typescript-eslint/src/index.ts @@ -3,6 +3,7 @@ import * as parserBase from '@typescript-eslint/parser'; // see the comment in config-helper.ts for why this doesn't use /ts-eslint import type { TSESLint } from '@typescript-eslint/utils'; +import type { ConfigWithExtends } from './config-helper'; import { config } from './config-helper'; import allConfig from './configs/all'; import baseConfig from './configs/base'; @@ -45,6 +46,7 @@ const configs = { }; export type Config = TSESLint.FlatConfig.ConfigFile; +export type { ConfigWithExtends }; /* eslint-disable-next-line import/no-default-export -- we do both a default and named exports to allow people to use this package from