You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With skipTypeImports :true, the statement import {type X}... will be skipped. This is incorrect behaviour, because unlike import type { X }, the former will still import the file and load any side-effect which may exist.
In other words, when the statement is import {type X}, Madge must follow the path- which it currently does not.
Workaround: You can use no-import-type-side-effects in ESLint for now
The text was updated successfully, but these errors were encountered:
nemosmithasf
changed the title
import type {X} and import {type X} are treated the same (they should not)import type {X} and import {type X} are treated the same (they should not be)
Jan 10, 2025
With
skipTypeImports :true
, the statementimport {type X}...
will be skipped. This is incorrect behaviour, because unlikeimport type { X }
, the former will still import the file and load any side-effect which may exist.In other words, when the statement is
import {type X}
, Madge must follow the path- which it currently does not.Workaround: You can use
no-import-type-side-effects
in ESLint for nowThe text was updated successfully, but these errors were encountered: