Eslint Plugin React: v7.34.0 Release

Release date:
March 4, 2024
Previous version:
v7.33.2 (released August 16, 2023)
Magnitude:
2,663 Diff Delta
Contributors:
16 total committers
Data confidence:
Commits:

40 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored December 20, 2023
Authored September 4, 2023
Authored November 20, 2023
Authored March 4, 2024
Authored November 3, 2023
Authored March 3, 2024
Authored August 16, 2023

Top Contributors in v7.34.0

reedws
burtek
jaesoekjjang
developer-bandi
ljharb
HermanBilous
HenryBrown0
pnodet
akulsr0
yialo

Directory Browser for v7.34.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Added

  • [sort-prop-types]: give errors on TS types (#3615 @akulsr0)
  • [no-invalid-html-attribute]: add support for apple-touch-startup-image rel attributes in link tags (#3638 @thomashockaday)
  • [no-unknown-property]: add requireDataLowercase option (#3645 @HermanBilous)
  • [no-unknown-property]: add displaystyle on <math> (#3652 @lounsbrough)
  • [prefer-read-only-props], [prop-types], component detection: allow components to be async functions (#3654 @pnodet)
  • [no-unknown-property]: support onResize on audio/video tags (#3662 @caesar1030)
  • [jsx-wrap-multilines]: add never option to prohibit wrapping parens on multiline JSX (#3668 @reedws)
  • [jsx-filename-extension]: add ignoreFilesWithoutCode option to allow empty files (#3674 @burtek)
  • [jsx-boolean-value]: add assumeUndefinedIsFalse option (#3675 @developer-bandi)
  • linkAttribute setting, [jsx-no-target-blank]: support multiple properties (#3673 @burtek)
  • [jsx-no-script-url]: add includeFromSettings option to support linkAttributes setting (#3673 @burtek)
  • [jsx-one-expression-per-line]: add non-jsx option to allow non-JSX children in one line (#3677 @burtek)
  • add [checked-requires-onchange-or-readonly] rule (#3680 @jaesoekjjang)

Fixed

  • [jsx-no-leaked-render]: preserve RHS parens for multiline jsx elements while fixing (#3623 @akulsr0)
  • [jsx-key]: detect conditional returns (#3630 @yialo)
  • [jsx-newline]: prevent a crash when allowMultilines (#3633 @ljharb)
  • [no-unknown-property]: use a better regex to avoid a crash (#3666 @ljharb @SCH227)
  • [prop-types]: handle nested forwardRef + memo (#3679 @developer-bandi)
  • [no-unknown-property]: add fetchPriority (#3697 @SevereCloud)
  • [forbid-elements]: prevent a crash on createElement() (#3632 @ljharb)

Changed

  • [jsx-boolean-value]: make error messages clearer (#3691 @developer-bandi)
  • [Refactor] propTypes: extract type params to var (#3634 @HenryBrown0)
  • [Refactor] [boolean-prop-naming]: invert if statement (#3634 @HenryBrown0)
  • [Refactor] [function-component-definition]: exit early if no type params (#3634 @HenryBrown0)
  • [Refactor] [jsx-props-no-multi-spaces]: extract type parameters to var (#3634 @HenryBrown0)
  • [Docs] [jsx-key]: fix correct example (#3656 @developer-bandi)
  • [Tests] jsx-wrap-multilines: passing tests (#3545 @burtek)
  • [Docs] [iframe-missing-sandbox]: fix link to iframe attribute on mdn (#3690 @nnmrts)
  • [Docs] [hook-use-state]: fix an undefined variable (#3626 @chentsulin)