# consistent-type-specifier-style

Rule `import/consistent-type-specifier-style`. Enforce or ban the use of inline type-only markers for named imports.

- Source: import
- Technologies: Imports
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 2.8M weekly downloads of presets that enable it
- Trend: +112.8% last quarter
- Rank: #1464 by reach, #102 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `import/consistent-type-specifier-style` | no | safe | package `eslint-plugin-import` | [docs](https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/consistent-type-specifier-style.md) |
| Oxlint | `import/consistent-type-specifier-style` | no | safe | plugin `import`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/import/consistent-type-specifier-style.html) |
| Biome | `style/useImportType` | yes | safe | group style, since 1.5.0 | [docs](https://biomejs.dev/linter/rules/use-import-type/) |

## Code examples

### Incorrect: the rule reports this

```ts
import {type Foo} from 'Foo';
import Foo, {type Bar} from 'Foo';
// flow only
import {typeof Foo} from 'Foo';
```

```ts
import type {Foo} from 'Foo';
import type Foo, {Bar} from 'Foo';
// flow only
import typeof {Foo} from 'Foo';
```

### Correct: the rule accepts this

```ts
import {type Foo} from 'Foo';
// flow only
import {typeof Bar} from 'Bar';
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import importPlugin from "eslint-plugin-import";

export default [
  {
    plugins: { import: importPlugin },
    rules: {
      "import/consistent-type-specifier-style": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "import"
  ],
  "rules": {
    "import/consistent-type-specifier-style": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useImportType": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [import/no-empty-named-blocks](https://lintradar.dev/rules/import/no-empty-named-blocks.md): Forbid empty named import blocks.
- [import/no-unassigned-import](https://lintradar.dev/rules/import/no-unassigned-import.md): Forbid unassigned imports
- [import/exports-last](https://lintradar.dev/rules/import/exports-last.md): Ensure all exports appear after other statements.
- [import/no-commonjs](https://lintradar.dev/rules/import/no-commonjs.md): Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
- [import/no-default-export](https://lintradar.dev/rules/import/no-default-export.md): Forbid default exports.
- [import/no-nodejs-modules](https://lintradar.dev/rules/import/no-nodejs-modules.md): Forbid Node.js builtin modules.

---

Web page: https://lintradar.dev/rules/import/consistent-type-specifier-style. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
