Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 696 Bytes

splat-attributes-only.md

File metadata and controls

32 lines (21 loc) · 696 Bytes

splat-attributes-only

✅ The extends: 'recommended' property in a configuration file enables this rule.

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:

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

This rule allows the following:

<div ...attributes></div>

References