-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
TypeScript 4.1 Syntax Support #2583
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
Comments
Hy @bradzacher I am working on Specs for the template literal type. If there anything you want me to consider before creating PR. |
Nothing really. Assuming it should be pretty simple to setup. I was kind of considering an AST like: interface TSTemplateLiteralType extends Node {
type: AST_NODE_TYPES.TemplateLiteralType;
quasis: TemplateElement[];
expressions: TypeNode[];
} So that it mirrors the standard template literal. |
Status on this? |
https://github.com/typescript-eslint/typescript-eslint#supported-typescript-version |
From the Iteration plan we can see that TS4.1 will have a Release Candidate on November 3rd. can we expect this issue to be fixed shortly after? |
TS4.1 just hit RC! I'll look to filling in support soon. |
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
With TypeScript 4.1 released, this issue is still closed, but I believe ESlint still breaks with: from my
|
@dipasqualew, Also I think the Supported Typescript Version on the readme can now be updated to state |
The readme is already up to date! There are no breakages for TS4.1 - we have many passing tests. If you think you have an issue, please file a new issue and fill out the template - as per our contributing guide. https://github.com/typescript-eslint/typescript-eslint/blob/master/CONTRIBUTING.md Help me to help you. |
https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/
This issue is just to track all of the new features and their implementation state in this project.
As with all releases, we will not necessarily to support all features until closer to the full release when everything the features are stabilised.
Please be patient.
Template Literal Types
This will require new AST nodes.
Key Remapping in Mapped Types
This will require AST changes.
Recursive Conditional Types
This will require no changes.
Pedantic Index Signature Checks
Example with the
noUncheckedIndexedAccess
compiler option turned on:This will require no changes (it will just start working and improve existing rules like
no-unnecessary-condition
for free!)React 17 JSX Factories
This will require a slight tweak to how the
parser
passes options toscope-manager
Other changes that have no impact on us:
paths
withoutbaseUrl
checkJs
ImpliesallowJs
Editor Support for the JSDoc
@see
Tagabstract
Members Can’t Be Markedasync
any
/unknown
Are Propagated in Falsy Positions--declaration
and--outFile
Requires a Package Name Rootresolve
's Parameters Are No Longer Optional inPromise
sThe text was updated successfully, but these errors were encountered: