-
-
Notifications
You must be signed in to change notification settings - Fork 925
Closed
Bug
Copy link
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.52.0
What command did you run?
No response
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
run the linter with this code:
import type { M, MC } from './types.ts';
export const F: MC[] = [];
export type { M, MC };this should not produce any errors (see the equivalent using eslint; documentation: https://eslint.org/docs/latest/rules/no-duplicate-imports#includeexports)
instead, oxlint produced an error:
× eslint(no-duplicate-imports): './types.ts' export is duplicated
╭─[1.ts:1:28]
1 │ import type { M, MC } from './types.ts';
· ──────┬─────
· ╰── Can be merged with this
2 │
╰────
╭─[1.ts:5:18]
4 │
5 │ export type { M, MC };
· ─┬
· ╰── This export is duplicated
6 │
╰────
help: Merge the duplicated exports into a single export statement
Found 0 warnings and 1 error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
Type
Fields
Give feedbackPriority
None yet
Effort
None yet
{"rules":{"no-duplicate-imports":["error",{"includeExports":true}]}}