astro/missing-client-only-directive-value
the client:only directive is missing the correct componentβs framework value
- β This rule is included in the
recommendedconfig.
π 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
βRulesNext Page
astro/no-conflict-set-directivesβ
βRulesNext Page
astro/no-conflict-set-directivesβ