Rules
prefer-shorthand-fragment
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Features
🔧
Description
Enforces shorthand syntax for fragments.
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.