-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Labels
Description
What version of Oxlint are you using?
0.9.10
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?
Yesterday I only fix typed import, but submit issue about namespaced + named import, maybe someone want to fix it. Test cases exist in:
oxc/crates/oxc_linter/src/rules/import/no_duplicates.rs
Lines 136 to 137 in 9d43a11
| // (r"import * as ns from './foo'; import { y } from './foo'", None), | |
| // (r"import { y } from './foo'; import * as ns from './foo'", None), |
error snap:
× eslint-plugin-import(no-duplicates): Forbid repeated import of the same module in multiple places
╭─[features/page-projects/src/lib/project-form/project-form.component.ts:87:24]
86 │ import * as streams from './streams';
87 │ import * as utils from './utils';
· ─────────
88 │ import { errorMapFactory } from './utils';
· ─────────
89 │
╰────
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet