import-js/eslint-plugin-import
在 GitHub 查看[no-duplicates] prefer-inline breaks unassigned and top-level type imports
Open
#3,130 创建于 2024年12月23日
bughelp wantedtypescript
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
"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 🎄