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