Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 598 Bytes

jsx-no-invalid-rel.md

File metadata and controls

14 lines (8 loc) · 598 Bytes

Prevent usage of invalid rel (react/jsx-no-invalid-rel)

The JSX elements: a, area, link, or form all have a attribute called rel. There is is fixed list of values that have any meaning on these tags (see MDN). To help with minimizing confusion while reading code, only the appropriate values should be on each attribute.

Rule Details

This rule aims to remove invalid rel attribute values.

Rule Options

There are no options.

When Not To Use It

When you don't want to enforce rel value correctness.