# noSvelteExportLet

Rule `biome/noSvelteExportLet`. Disallow declaring Svelte component props with `export let`.

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```svelte
<script>
export let name;
</script>
```

```svelte
<script>
let className;
export { className as class };
</script>
```

### Correct: the rule accepts this

```svelte
<script>
let { name, class: className } = $props();
</script>
```

```svelte
<script module>
export let count = 0;
</script>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noSvelteExportLet": "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/noSvelteClassDirective](https://lintradar.dev/rules/biome/noSvelteClassDirective.md): Disallow Svelte's `class:` directive.
- [biome/noSvelteInspect](https://lintradar.dev/rules/biome/noSvelteInspect.md): Disallow the use of the `$inspect` rune.
- [biome/noSvelteBindValueOnCheckableInputs](https://lintradar.dev/rules/biome/noSvelteBindValueOnCheckableInputs.md): Disallow `bind:value` on checkbox and radio inputs.
- [biome/noSvelteInternal](https://lintradar.dev/rules/biome/noSvelteInternal.md): Disallow importing from `svelte/internal`.
- [biome/noSvelteAtHtmlTags](https://lintradar.dev/rules/biome/noSvelteAtHtmlTags.md): Disallow the use of Svelte's `{@html}` tag.
- [biome/noSvelteObjectInTextMustaches](https://lintradar.dev/rules/biome/noSvelteObjectInTextMustaches.md): Disallow objects, arrays, functions, and classes in Svelte text mustaches.

---

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