Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 817 Bytes

no-nested-splattributes.md

File metadata and controls

35 lines (24 loc) · 817 Bytes

no-nested-splattributes

Having ...attributes on multiple elements nested within each other in a component can cause unintended results.

This rule prevent you from running into this issue by disallowing ...attributes if any of the parent elements already has ...attributes on it.

Examples

This rule forbids the following:

<div ...attributes>
  <div ...attributes>
    ...
  </div>
</div>

This rule allows the following:

<div ...attributes>...</div>
<div ...attributes>...</div>

Migration

  • Remove the inner ...attributes declaration

References