This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed
Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Eslint extensions.
3+ */
4+ export type EslintExtensions = 'eslint:recommended' | 'eslint:all' ;
Original file line number Diff line number Diff line change 1+ import type { LiteralUnion } from '../utility-types' ;
2+ import type { EslintExtensions } from './eslint' ;
3+
4+ /**
5+ * All known extensions.
6+ */
7+ export type KnownExtensions = LiteralUnion < EslintExtensions > ;
8+
9+ /**
10+ * Extending Configuration Files.
11+ *
12+ * @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
13+ */
14+ export type Extends = KnownExtensions | Array < KnownExtensions > ;
Original file line number Diff line number Diff line change 11import type { Environments } from './env' ;
2+ import type { Extends } from './extends' ;
23import type { Overrides } from './overrides' ;
34import type { ParserOptions } from './parser-options' ;
45import type { Rules } from './rules' ;
@@ -16,7 +17,12 @@ export interface EslintConfig {
1617 * @see [Environments](https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments)
1718 */
1819 env ?: Environments ;
19- extends ?: string [ ] ;
20+ /**
21+ * Extending Configuration Files.
22+ *
23+ * @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
24+ */
25+ extends ?: Extends ;
2026 parser ?: string ;
2127 parserOptions ?: ParserOptions ;
2228 plugins ?: string [ ] ;
Original file line number Diff line number Diff line change 1+ /**
2+ * A literal type that supports custom further strings but preserves autocompletion in IDEs.
3+ *
4+ * @see [copied from issue](https://github.com/microsoft/TypeScript/issues/29729#issuecomment-471566609)
5+ * */
6+ export type LiteralUnion < T extends U , U = string > = T | ( U & { zz_IGNORE_ME ?: never } ) ;
You can’t perform that action at this time.
0 commit comments