# noSvelteInternal

Rule `biome/noSvelteInternal`. Disallow importing from `svelte/internal`.

- Source: biome
- Technologies: Svelte
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #552 by reach, #187 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noSvelteInternal` | yes | no | group nursery, since 2.6.3 | [docs](https://biomejs.dev/linter/rules/no-svelte-internal/) |

## Code examples

### Incorrect: the rule reports this

```js
import { get_current_component } from "svelte/internal";
```

```js
import { inspect } from "svelte/internal/client";
```

```js
export * from "svelte/internal/server";
```

### Correct: the rule accepts this

```js
import { mount } from "svelte";
import { writable } from "svelte/store";
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noSvelteInternal": "error"
      }
    }
  }
}
```

## Presets that enable it

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

## Related rules

- [biome/noSvelteInspect](https://lintradar.dev/rules/biome/noSvelteInspect.md): Disallow the use of the `$inspect` rune.
- [biome/noSvelteObjectInTextMustaches](https://lintradar.dev/rules/biome/noSvelteObjectInTextMustaches.md): Disallow objects, arrays, functions, and classes in Svelte text mustaches.
- [biome/noSvelteExportLet](https://lintradar.dev/rules/biome/noSvelteExportLet.md): Disallow declaring Svelte component props with `export let`.
- [biome/noSvelteUnnecessaryStateWrap](https://lintradar.dev/rules/biome/noSvelteUnnecessaryStateWrap.md): Disallow unnecessary `$state` wrapping of reactive classes.
- [biome/noSvelteClassDirective](https://lintradar.dev/rules/biome/noSvelteClassDirective.md): Disallow Svelte's `class:` directive.
- [biome/noSvelteUselessDerivedBy](https://lintradar.dev/rules/biome/noSvelteUselessDerivedBy.md): Disallow `$derived.by()` when `$derived()` is sufficient.

---

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