import-js/eslint-plugin-import
GitHub で見る[no-duplicates] prefer-inline breaks unassigned and top-level type imports
Open
#3,130 opened on 2024年12月23日
bughelp wantedtypescript
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
"import/no-duplicates": ["error", { "prefer-inline": true }],
Will detect an error in the following typescript code:
import type { X } from "xyz";
import "xyz";
// [...]
It will auto-fix by removing the import "xyz"; statement. This is not the desired behavior. I would expect it to stay as is.
Merry Christmas 🎄