# noSvelteInspect

Rule `biome/noSvelteInspect`. Disallow the use of the `$inspect` rune.

- 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: #551 by reach, #186 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```svelte
<script>
let count = $state(0);
$inspect(count);
</script>
```

```svelte
<script>
$effect(() => {
    $inspect.trace();
});
</script>
```

### Correct: the rule accepts this

```svelte
<script>
let count = $state(0);
</script>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noSvelteInspect": "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/noSvelteExportLet](https://lintradar.dev/rules/biome/noSvelteExportLet.md): Disallow declaring Svelte component props with `export let`.
- [biome/noSvelteInternal](https://lintradar.dev/rules/biome/noSvelteInternal.md): Disallow importing from `svelte/internal`.
- [biome/noSvelteClassDirective](https://lintradar.dev/rules/biome/noSvelteClassDirective.md): Disallow Svelte's `class:` directive.
- [biome/noSvelteObjectInTextMustaches](https://lintradar.dev/rules/biome/noSvelteObjectInTextMustaches.md): Disallow objects, arrays, functions, and classes in Svelte text mustaches.
- [biome/noSvelteBindValueOnCheckableInputs](https://lintradar.dev/rules/biome/noSvelteBindValueOnCheckableInputs.md): Disallow `bind:value` on checkbox and radio inputs.
- [biome/noSvelteUnnecessaryStateWrap](https://lintradar.dev/rules/biome/noSvelteUnnecessaryStateWrap.md): Disallow unnecessary `$state` wrapping of reactive classes.

---

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