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?
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?