Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 850 Bytes

File metadata and controls

43 lines (30 loc) · 850 Bytes

ember/template-no-attribute-splat-on-html-element

Disallows using ...attributes on HTML elements.

Rule Details

The ...attributes syntax should only be used on component elements, not on HTML elements, to avoid confusion and maintain clear component boundaries.

Examples

Examples of incorrect code for this rule:

<template>
  <div ...attributes></div>
</template>
<template>
  <span ...attributes></span>
</template>

Examples of correct code for this rule:

<template>
  <MyComponent ...attributes />
</template>
<template>
  <div class="wrapper"></div>
</template>

References