-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
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:
- package version:
[email protected]
,[email protected]
,[email protected]
- config:
rules: { 'import/no-duplicates': 'error', },
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
Labels
No labels