Skip to content

linter: import/no-duplicates false positive #6736

@pumano

Description

@pumano

What version of Oxlint are you using?

0.10.1

What command did you run?

oxlint -c oxlintrc.json --quiet

What does your .oxlint.json config file look like?

{
  "plugins": ["import"],
  "rules": {
    "import/no-duplicates": "error"
  }
}

What happened?

Looks like some regression after #6694 but that not catched, because we don't have some valid test cases for it.

I provide valid test case for reproduction:

        (
            r"import { ReactiveFormsModule } from '@angular/forms';
            import { RouterModule, Routes } from '@angular/router';",
            None,
        ),

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions