Rules
avoid-shorthand-fragment
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Features
🔍
What it does
Enforces the use of explicit <Fragment>
or <React.Fragment>
components instead of the shorthand <>
or </>
syntax.
Examples
Failing
Passing
Implementation
See Also
avoid-shorthand-boolean
Enforces the use of explicit boolean values for boolean attributes.prefer-shorthand-boolean
Enforces the use of shorthand syntax for boolean attributes.prefer-shorthand-fragment
Enforces the use of shorthand syntax for fragments.