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 1
1
import type { Environments } from './env' ;
2
+ import type { Extends } from './extends' ;
2
3
import type { Overrides } from './overrides' ;
3
4
import type { ParserOptions } from './parser-options' ;
4
5
import type { Rules } from './rules' ;
@@ -16,7 +17,12 @@ export interface EslintConfig {
16
17
* @see [Environments](https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments)
17
18
*/
18
19
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 ;
20
26
parser ?: string ;
21
27
parserOptions ?: ParserOptions ;
22
28
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