Skip to content

Commit

Permalink
fix: remove LiteralUnion of PredefinedConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 30, 2022
1 parent fd526ac commit 5847ded
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/flat-config/index.d.ts
@@ -1,6 +1,5 @@
import type { ESLint, Linter } from 'eslint';
import type { Rules } from '../rules';
import type { LiteralUnion } from '../utility-types';
import type { LanguageOptions } from './language-options';
import type { LinterOptions } from './linter-options';

Expand Down Expand Up @@ -63,9 +62,7 @@ export interface FlatESLintConfigItem {
*
* @see [Using predefined configurations](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-predefined-configurations)
*/
export type PredefinedConfig = LiteralUnion<
'eslint:recommended' | 'eslint:all'
>;
export type PredefinedConfig = 'eslint:recommended' | 'eslint:all';

export type FlatESLintConfig = FlatESLintConfigItem | PredefinedConfig;

Expand Down

0 comments on commit 5847ded

Please sign in to comment.