Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 415 Bytes

jsx-for-require-each.md

File metadata and controls

26 lines (17 loc) · 415 Bytes

For tag must contain each attribute (jsx-for-require-each)

Warn if For tag is missing each attribute. And also marks the variable as defined.

Rule Details

The following patterns are considered warnings:

<For>
    <div/>
</For>

The following patterns are not warnings:

<For each={foo}>
    <div/>
</For>

When Not To Use It

If you are not using JSX, you can disable this rule