Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 870 Bytes

File metadata and controls

34 lines (22 loc) · 870 Bytes

ember/template-splat-attributes-only

💼 This rule is enabled in the 📋 template-lint-migration config.

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