# noNamespaceImport

Rule `biome/noNamespaceImport`. Disallow the use of namespace imports.

- Source: biome
- Technologies: Imports
- Kind: performance
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1914 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `performance/noNamespaceImport` | no | no | group performance, since 1.6.0 | [docs](https://biomejs.dev/linter/rules/no-namespace-import/) |

## Code examples

### Incorrect: the rule reports this

```js
import * as foo from "foo";
```

### Correct: the rule accepts this

```ts
import { foo } from "foo"
import type { bar } from "bar"
import type * as baz from "baz"
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "performance": {
        "noNamespaceImport": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noMissingScssInterpolation](https://lintradar.dev/rules/biome/noMissingScssInterpolation.md): Disallow Sass variables and function calls in custom property values without `#{}` interpolation.
- [biome/noNestedComponentDefinitions](https://lintradar.dev/rules/biome/noNestedComponentDefinitions.md): Disallows defining React components inside other components.
- [biome/noMisleadingReturnType](https://lintradar.dev/rules/biome/noMisleadingReturnType.md): Detect return type annotations that are misleadingly wider than what the implementation actually returns.
- [biome/noNonScalableViewport](https://lintradar.dev/rules/biome/noNonScalableViewport.md): Disallow disabling zoom with `user-scalable=no` in the `<meta name="viewport">` element.
- [biome/noJsxLeakedDollar](https://lintradar.dev/rules/biome/noJsxLeakedDollar.md): Flags text nodes with a trailing `$` before a JSX expression.
- [biome/noObsoleteTags](https://lintradar.dev/rules/biome/noObsoleteTags.md): Disallow obsolete HTML elements.

---

Web page: https://lintradar.dev/rules/biome/noNamespaceImport. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
