import-js/eslint-plugin-import
Ver no GitHub[no-duplicates] prefer-inline breaks unassigned and top-level type imports
Open
#3.130 aberto em 23 de dez. de 2024
bughelp wantedtypescript
Métricas do repositório
- Stars
- (4.946 stars)
- Métricas de merge de PR
- (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)
Description
"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 🎄