-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
950a4ed
commit 0549d94
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Eslint extensions. | ||
*/ | ||
export type EslintExtensions = 'eslint:recommended' | 'eslint:all'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { LiteralUnion } from '../utility-types'; | ||
import type { EslintExtensions } from './eslint'; | ||
|
||
/** | ||
* All known extensions. | ||
*/ | ||
export type KnownExtensions = LiteralUnion<EslintExtensions>; | ||
|
||
/** | ||
* Extending Configuration Files. | ||
* | ||
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) | ||
*/ | ||
export type Extends = KnownExtensions | Array<KnownExtensions>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* A literal type that supports custom further strings but preserves autocompletion in IDEs. | ||
* | ||
* @see [copied from issue](https://github.com/microsoft/TypeScript/issues/29729#issuecomment-471566609) | ||
* */ | ||
export type LiteralUnion<T extends U, U = string> = T | (U & { zz_IGNORE_ME?: never }); |