> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# no-import-type-side-effects

[Added in v0.6.0](https://github.com/web-infra-dev/rslint/releases/tag/v0.6.0)
## Configuration


```ts title=rslint.config.ts
import { defineConfig, ts } from '@rslint/core';

export default defineConfig([
  ts.configs.recommended,
  {
    rules: {
      '@typescript-eslint/no-import-type-side-effects': 'error',
    },
  },
]);
```

## 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:

```typescript
import { type A } from 'mod';
import { type A as AA } from 'mod';
import { type A, type B } from 'mod';
import { type A as AA, type B as BB } from 'mod';
```

Examples of **correct** code for this rule:

```typescript
import T from 'mod';
import * as T from 'mod';
import { T } from 'mod';
import type { T } from 'mod';
import type { T, U } from 'mod';
import { type T, U } from 'mod';
import { T, type U } from 'mod';
import type T from 'mod';
import T, { type U } from 'mod';
import type * as T from 'mod';
import 'mod';
```

## Original Documentation

- [typescript-eslint: no-import-type-side-effects](https://typescript-eslint.io/rules/no-import-type-side-effects)
- [Source code](https://github.com/typescript-eslint/typescript-eslint/blob/v8.67.0/packages/eslint-plugin/src/rules/no-import-type-side-effects.ts)
