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
Please describe what the rule should do:
I would like a rule that requires defineSlots to be present if there are any slots in the component - could be called vue/no-undeclated-slots or something similar. I did not find a rule that does this in the rule list, and did not find a relevant issue.
What category should the rule belong to?
[X] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Additional context
I am sorry if this issue is not submitted correctly, and will fix any errors. I am also willing to try to implement the rule myself if anyone can give me a starting point (maybe a rule that is somewhat similar)
The text was updated successfully, but these errors were encountered:
As a name for the new rule, I'd suggest vue/require-explicit-slots to be consistent with vue/require-explicit-emits.
FloEdelmann
changed the title
A rule that would require all slots to be documented
Rule suggestion: vue/require-explicit-slots to require all slots to be documented
Oct 11, 2023
Please describe what the rule should do:
I would like a rule that requires
defineSlots
to be present if there are any slots in the component - could be calledvue/no-undeclated-slots
or something similar. I did not find a rule that does this in the rule list, and did not find a relevant issue.What category should the rule belong to?
[X] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Additional context
I am sorry if this issue is not submitted correctly, and will fix any errors. I am also willing to try to implement the rule myself if anyone can give me a starting point (maybe a rule that is somewhat similar)
The text was updated successfully, but these errors were encountered: