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
I'd like to ensure no side effects are introduced by type imports, that means if I only import a type from a module, it should use the declaration syntax (import type { X } from 'y').
If I import a mix of types and normal exports from a module though, I don't care about this:
// this separation is not useful as the first import will run any module side effects.
import { X } from 'y';
import type { Z } from 'y';
Right now the type-import-style rule doesn't allow to specify this. Do you think it could be implemented?
The text was updated successfully, but these errors were encountered:
I'd like to ensure no side effects are introduced by type imports, that means if I only import a type from a module, it should use the declaration syntax (
import type { X } from 'y'
).If I import a mix of types and normal exports from a module though, I don't care about this:
Right now the
type-import-style
rule doesn't allow to specify this. Do you think it could be implemented?The text was updated successfully, but these errors were encountered: