Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 729 Bytes

File metadata and controls

32 lines (21 loc) · 729 Bytes

ember/template-splat-attributes-only

It is easy to introduce typos when typing out ...attributes or to use e.g. ...arguments instead. Unfortunately, that leads to a cryptic runtime error, but does not fail the build.

This rule warns you when you use an attribute starting with ... that is not ...attributes.

Examples

This rule forbids the following:

<template><div ...atributes></div></template>
<template><div ...arguments></div></template>

This rule allows the following:

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

References