Skip to content
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

Prepare for typescript 5. Enable consistent type import formatting #2608

Merged
merged 5 commits into from
Mar 23, 2023

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Mar 23, 2023

Description

Preparation work to make TypeScript 5.0 and verbatimModuleSyntax easily adoptable.

  • Update @typescript/eslint/*, eslint-plugin-import and prettier
  • Enable the @typescript-eslint/consistent-type-imports, @typescript-eslint/consistent-type-exports, @typescript-eslint/no-import-type-side-effects and import/consistent-type-specifier-style lint rules.
  • Apply autofixes for those rules and prettier update
  • Some manual fixes to use import type instead of dynamic type imports

This results in us always using import type when dealing with type imports.

@BPScott BPScott requested a review from a team as a code owner March 23, 2023 03:42
@BPScott BPScott merged commit ba4da84 into main Mar 23, 2023
@BPScott BPScott deleted the ts5prep branch March 23, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant