Skip to content

[eslint-plugin] add "@typescript-eslint/consistent-type-imports" rule #28229

Open
@jeremymeng

Description

@jeremymeng

While migrating to vitest, we need to mark type-only imports to help vitest. There's a @typescript-eslint rule that provides fixer.

https://typescript-eslint.io/rules/consistent-type-imports/

The page also links to related eslint rules, one of which also offers similar functionality https://typescript-eslint.io/rules/consistent-type-imports/

If we adopt this rule, we probably also need to make codegen scenario to work as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.EngSysThis issue is impacting the engineering system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions