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
TypeScript 4.5 Support #3950
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4.5rc has released |
4.5 has officially released |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
In terms of import React, {ComponentType} from 'react'; I think it would just be autofixed as: import React, {type ComponentType} from 'react'; Instead of the old way with two lines of import right? Should we also autofix those that were split into two lines to make this rule happy and merge them into one line? |
I think that should be an option (default false), not the default for a few reasons:
That would be the concern of a rule like Happy to accept a PR to add an option to do that - please raise a separate issue for that so we can track it - it's an additional feature request and isn't required for 4.5 support so it isn't covered by this issue. |
https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-rc/
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.
type
Modifiers on Import and Export NamesThis will require AST changes.
Babel: babel/babel#13802
This will require updates to scope analysis:
This will require updates to rules:
consistent-type-exports
consistent-type-imports
no-shadow
Private Field Presence Checks
This will require AST changes.
ESTree: https://github.com/estree/estree/blob/master/es2022.md#binaryexpression
Import Assertions
This will require AST changes.
ESTree: https://github.com/estree/estree/blob/master/stage3/import-assertions.md
lib.d.ts
ChangesWill require regeneration of
@typescript-eslint/scope-manager
types.Better Editor Support for Unresolved Types
This might break a few tests due to the type printer printing something that isn't
any
.Other changes with no impact to us
Awaited
Type andPromise
Improvements--module es2022
realPathSync.native
Awaited
tsconfig.json
The text was updated successfully, but these errors were encountered: