sindresorhus/eslint-plugin-unicorn
`require-module-attributes`: Support `TSImportType`
Geschlossen
#2.726 geöffnet am 01.09.2025
change requestgood for beginnerhelp wanted
Repository-Metriken
- Stars
- (5.022 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 4h 30m) (26 gemergte PRs in 30 T)
Beschreibung
Description
It seems typescript doesn't allow
type A = import("foo", {})
But allows
type A = import("foo", {with: {}})
I didn't add support for it in #2725, if someone need it, it can reuse the same logic as ImportExpression
Examples
// ❌
type A = import("foo", {with: {}})
// ✅
type A = import("foo")
Additional Info
No response