Skip to content

[no-duplicates] issue with namespace imports getting ignored #3204

@Yukinosuke-Takada

Description

@Yukinosuke-Takada

Following the sample code in docs, the following code should give error:

import SomeDefaultClass from './mod'
import * as names from './mod'

I'm not sure if this is the expected behavior, but either way, it doesn't match what's written in the documentation.

environment:

Additional info:
The following code gives these errors.

import SomeDefaultClass from './mod'       // Error: './mod' imported multiple times. eslint(import/no-duplicates)
import SomeDefaultClass2 from './mod'      // Error: './mod' imported multiple times. eslint(import/no-duplicates)
import { something } from './mod'          // Error: './mod' imported multiple times. eslint(import/no-duplicates)
import { something2 } from './mod'         // Error: './mod' imported multiple times. eslint(import/no-duplicates)
import * as names from './mod'

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