Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typescript-eslint): export ConfigWithExtends type #8621

Merged
merged 1 commit into from Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/typescript-eslint/src/config-helper.ts
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions packages/typescript-eslint/src/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand Down