# noExportedImports

Rule `biome/noExportedImports`. Disallow exporting an imported variable.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1543 by reach, #47 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/noExportedImports` | no | no | group style, since 1.9.0 | [docs](https://biomejs.dev/linter/rules/no-exported-imports/) |

## Code examples

### Incorrect: the rule reports this

```js
import { A } from "mod";
export { A };
```

```js
import * as ns from "mod";
export { ns };
```

```js
import D from "mod";
export { D };
```

### Correct: the rule accepts this

```js
export { A } from "mod";
export * as ns from "mod";
export { default as D } from "mod";
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noEvolvingTypes](https://lintradar.dev/rules/biome/noEvolvingTypes.md): Disallow variables from evolving into `any` type through reassignments.
- [biome/noRedundantDefaultExport](https://lintradar.dev/rules/biome/noRedundantDefaultExport.md): Checks if a default export exports the same symbol as a named export.
- [biome/noEnum](https://lintradar.dev/rules/biome/noEnum.md): Disallow TypeScript enum.
- [biome/noRootType](https://lintradar.dev/rules/biome/noRootType.md): Disallow configured GraphQL root operation types.
- [biome/noEmptyObjectKeys](https://lintradar.dev/rules/biome/noEmptyObjectKeys.md): Disallow empty keys in JSON objects.
- [biome/noShoutyConstants](https://lintradar.dev/rules/biome/noShoutyConstants.md): Disallow constants whose string value is the same as their uppercase name.

---

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