# useAstroClientOnlyDirectiveValue

Rule `biome/useAstroClientOnlyDirectiveValue`. Require a value for Astro's `client:only` directive.

- Source: biome
- Technologies: Astro
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1951 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/useAstroClientOnlyDirectiveValue` | no | no | group nursery, since 2.5.9 | [docs](https://biomejs.dev/linter/rules/use-astro-client-only-directive-value/) |

## Code examples

### Incorrect: the rule reports this

```astro
<Component client:only />
```

### Correct: the rule accepts this

```astro
<Component client:only="react" />
```

```astro
<Component client:only={renderer} />
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Related rules

- [biome/noUnusedClasses](https://lintradar.dev/rules/biome/noUnusedClasses.md): Reports CSS class selectors that are never referenced in any JSX or HTML file.
- [biome/useAwaitThenable](https://lintradar.dev/rules/biome/useAwaitThenable.md): Enforce that `await` is _only_ used on `Promise` values.
- [biome/noUntrustedLicenses](https://lintradar.dev/rules/biome/noUntrustedLicenses.md): Disallow dependencies with untrusted licenses.
- [biome/useConsistentBooleanProps](https://lintradar.dev/rules/biome/useConsistentBooleanProps.md): Require a consistent style for JSX props with the value `true`
- [biome/noUnsafeTypeAssertion](https://lintradar.dev/rules/biome/noUnsafeTypeAssertion.md): Disallow TypeScript type assertions other than const assertions.
- [biome/useConsistentFontWeightNotation](https://lintradar.dev/rules/biome/useConsistentFontWeightNotation.md): Enforce a consistent notation for font weights.

---

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