# noRedundantDefaultExport

Rule `biome/noRedundantDefaultExport`. Checks if a default export exports the same symbol as a named export.

- 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: #1544 by reach, #48 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/noRedundantDefaultExport` | no | no | group complexity, since 2.3.14 | [docs](https://biomejs.dev/linter/rules/no-redundant-default-export/) |

## Code examples

### Incorrect: the rule reports this

```js
export const foo = 42;
export default foo;
```

### Correct: the rule accepts this

```js
export const foo = 42;
export default 42;
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noRedundantDefaultExport": "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/noExportedImports](https://lintradar.dev/rules/biome/noExportedImports.md): Disallow exporting an imported variable.
- [biome/noRootType](https://lintradar.dev/rules/biome/noRootType.md): Disallow configured GraphQL root operation types.
- [biome/noEvolvingTypes](https://lintradar.dev/rules/biome/noEvolvingTypes.md): Disallow variables from evolving into `any` type through reassignments.
- [biome/noShoutyConstants](https://lintradar.dev/rules/biome/noShoutyConstants.md): Disallow constants whose string value is the same as their uppercase name.
- [biome/noEnum](https://lintradar.dev/rules/biome/noEnum.md): Disallow TypeScript enum.
- [biome/noTopLevelLiterals](https://lintradar.dev/rules/biome/noTopLevelLiterals.md): Require the JSON top-level value to be an array or object.

---

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