Skip to content

addition to rule: import/no-duplicates #2470

@snewcomer

Description

@snewcomer

The proposal here is to improve this rule and handle inline type modifiers

import { type Foo } from 'T';
import { type Bar } from 'T';
//^^^^^^^^^^^^^^^^^^^^ Error: duplicate import from module 'T' (import/no-duplicates)

Fixer

import { type Foo,  type Bar } from 'T';

ref #2469 and typescript-eslint/typescript-eslint#5050 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions