What’s New

eslint-plugin-react v7.36.0

v7.36.0
Added
  • Allow this.refs in React > 18.3.0 for no-string-refs rule
  • Add elementOverrides option to jsx-no-literals rule and ability to ignore this rule on specific elements
  • Add forward-ref-uses-ref rule for checking ref parameter is added
Changed
  • Add JSDoc type annotations to types
Fixed
  • Use type args in function-component-definition, boolean-prop-naming, jsx-first-prop-new-line, jsx-props-no-multi-spaces, and propTypes rules
  • JSX pragma fails gracefully
  • Add explicitSpread option to jsx-props-no-spreading rule schema
Added
Fixed
Changed
  • [Tests] add @typescript-eslint/parser v6 (#3629 @HenryBrown0)
  • [Tests] add @typescript-eslint/parser v7 and v8 (#3629 @hampustagerud)
  • [Docs] no-danger: update broken link (#3817 @lucasrmendonca)
  • [types] add jsdoc type annotations (#3731 @y-hsgw)
  • [Tests] button-has-type: add test case with spread (#3731 @y-hsgw)
View original