Skip to content

[prefer-importing-vitest-globals] doesn't consider other imports #864

@oleasteo

Description

@oleasteo

I like to use

import { assert } from "ts-essentials";

Despite that import being present, the autofix of prefer-importing-vitest-globals adds a duplicate assert import from vitest.

I'm using the legacy eslint config, no typecheck — just in case any of the setup matters.

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