Skip to content

no-duplicates autofix incorrectly combines type and non-type typescript imports #231

Open
@steved-stripe

Description

@steved-stripe

Before:

import {
  type ComponentToken,
  type ValidateAllPermissions,
  type ValidatePermissions,
  checkPermissions,
} from 'foo';
import type {FunctionParameterToken} from 'foo';

After:

import type {
  type ComponentToken,
  FunctionParameterToken,
  type ValidateAllPermissions,
  type ValidatePermissions,
  checkPermissions,
} from 'foo';

I think we'd ignore this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomebugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions