💼 This rule is enabled in the following configs: ✅ recommended, strict-gjs, strict-gts.
Disallow using ...attributes with class attribute.
When using ...attributes (splattributes), any classes passed from the parent component will be automatically merged with the component's own classes. Adding a class attribute alongside ...attributes can lead to confusion about which classes take precedence.
This rule forbids the following:
This rule allows the following:
When using ...attributes, classes are automatically merged from parent components. Using a class attribute alongside it creates confusion about which classes take precedence and can lead to unexpected styling behavior.