Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 610 Bytes

File metadata and controls

30 lines (20 loc) · 610 Bytes

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:

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

This rule allows the following:

<div ...attributes></div>

References