You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any content inside a component tag becomes the children snippet. Thus, If you have a component with a children snippet without parameters, that's unnecessary.
Description
I'd like to add a rule that bans the children snippet if it has no parameters
Maybe the rule should be a bit clearer. For example, how about the name no-useless-children-snippet?
I think the rule name might confuse users if we later create a rule to report components like this:
{#snippetfoo(value)}
Hello {value}
{/snippet}
<!-- ✗ BAD -->
<Foo>
{#snippetbar(value)}
{@renderfoo(value)}
{/snippet}
</Foo>
<!-- ✓ GOOD -->
<Foobar={foo}>
</Foo>
Motivation
Any content inside a component tag becomes the
children
snippet. Thus, If you have a component with a children snippet without parameters, that's unnecessary.Description
I'd like to add a rule that bans the
children
snippet if it has no parametersExamples
Additional comments
No response
The text was updated successfully, but these errors were encountered: