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