no-import-type-side-effects
Configuration
rslint.config.ts
Rule Details
Enforce the use of a top-level import type qualifier when an import only has specifiers with inline type qualifiers. Under TypeScript's --verbatimModuleSyntax, inline type specifiers are stripped one by one, which leaves behind an empty import {} from 'mod' — a runtime side-effect import. Hoisting the qualifier to the top level removes the whole statement instead. The rule is auto-fixable.
Examples of incorrect code for this rule:
Examples of correct code for this rule: