# noBarrelFile

Rule `biome/noBarrelFile`. Disallow the use of barrel file.

- 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: #1901 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
export * from "foo";
export * from "bar";
```

```js
export { foo } from "foo";
export { bar } from "bar";
```

```js
export { default as module1 } from "./module1";
```

### Correct: the rule accepts this

```ts
export type * from "foo";
export type { foo } from "foo";
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Related rules

- [biome/noBunModules](https://lintradar.dev/rules/biome/noBunModules.md): Forbid the use of Bun builtin modules.
- [biome/noConvexCollectInQuery](https://lintradar.dev/rules/biome/noConvexCollectInQuery.md): Disallow loading every result of a Convex database query with `.collect()`.
- [biome/noConvexWrongRuntimeImports](https://lintradar.dev/rules/biome/noConvexWrongRuntimeImports.md): Disallow importing Node.js runtime files from Convex runtime files.
- [biome/noDisabledAttribute](https://lintradar.dev/rules/biome/noDisabledAttribute.md): Discourages the `disabled` attribute on form controls and on elements that act as buttons.
- [biome/noDrizzleDbObjectInsideTransaction](https://lintradar.dev/rules/biome/noDrizzleDbObjectInsideTransaction.md): Disallow using a Drizzle ORM instance inside its own transaction callback.
- [biome/noExcessiveSelectorClasses](https://lintradar.dev/rules/biome/noExcessiveSelectorClasses.md): Limit the number of classes in a selector.

---

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