Skip to content

Consider enabling @typescript-eslint/no-import-type-side-effects #97

@spence-s

Description

@spence-s

Currently @typescript-eslint/consistent-type-imports auto fixes all type imports to be inline.

If an import only includes type imports this will result in an empty module import.

https://typescript-eslint.io/rules/no-import-type-side-effects

This rule seems to be complimentary to consistent-type-imports and doesn't conflict but adds extra safety when the verbatimModuleSyntax ts config flag is turned on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions