astro/missing-client-only-directive-value
the client:only directive is missing the correct componentβs framework value
- β This rule is included in
"plugin:astro/recommended"
.
π Rule Details
This rule reports not setting a value for the client:only
directive.
---
/* eslint astro/missing-client-only-directive-value: "error" */
---
{/* β GOOD */}
<SomeSvelteComponent client:only="svelte" />
{/* β BAD */}
<SomeSvelteComponent client:only />
π§ Options
Nothing.
π Further Reading
π Version
This rule was introduced in eslint-plugin-astro v0.33.0
π Implementation
Edit this page
Back
β Rules Next Page
astro/no-conflict-set-directives β
β Rules Next Page
astro/no-conflict-set-directives β