Eslint Plugin React: v7.30.0 Release

Release date:
May 18, 2022
Previous version:
v7.29.4 (released March 13, 2022)
Magnitude:
4,273 Diff Delta
Contributors:
16 total committers
Data confidence:
Commits:

38 Commits in this Release

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

Authored February 6, 2022
Authored April 1, 2022
Authored March 28, 2022
Authored February 28, 2022
Authored April 15, 2022
Authored May 18, 2022
Authored April 30, 2022

Top Contributors in v7.30.0

golopot
Belco90
nix6839
JohnBerd
Nokel81
ljharb
zacharyliu
duncanbeevers
WillyLiaoWH
aladdin-add

Directory Browser for v7.30.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

  • [destructuring-assignment]: add option destructureInSignature (#3235 @golopot)
  • [no-unknown-property]: Allow crossOrigin on image tag (SVG) (#3251 @zpao)
  • [jsx-tag-spacing]: Add multiline-always option (#3260, #3264 @Nokel81)
  • [function-component-definition]: replace var by const in certain situations (#3248 @JohnBerd @SimeonC)
  • add [jsx-no-leaked-render] (#3203 @Belco90)
  • [require-default-props]: add option functions (#3249 @nix6839)

Fixed

  • [hook-use-state]: Allow UPPERCASE setState setter prefixes (#3244 @duncanbeevers)
  • propTypes: add VFC to react generic type param map (#3230 @dlech)
  • [no-unused-state]: avoid a crash (#3258 @WillyLiaoWH @ljharb)
  • [jsx-no-useless-fragment]: use proper apostrophe in error message (#3266 @develohpanda)
  • propTypes: handle imported types/interface in forwardRef generic (#3280 @vedadeepta)
  • [button-has-type]: fix exception for <button type> (#3255 @meowtec)
  • [no-unstable-nested-components]: Improve error message and catch React.memo() (#3247 @zacharyliu)

Changed

  • [readme] remove global usage and eslint version from readme (#3254 @aladdin-add)
  • [Refactor] fix linter errors (#3261 @golopot)
  • [Docs] [no-unused-prop-types]: fix syntax errors (#3259 @mrdulin)
  • [Refactor] improve performance for detecting function components (#3265 @golopot)
  • [Refactor] improve performance for detecting class components (#3267 @golopot)
  • [Refactor] [no-deprecated]: improve performance (#3271 @golopot)
  • [Refactor] [no-did-mount-set-state], [no-did-update-set-state], [no-will-update-set-state]: improve performance (#3272 @golopot)
  • [Refactor] improve performance by avoiding unnecessary Components.detect (#3273 @golopot)
  • [Refactor] add isParenthesized AST util (#3203 @Belco90)
  • [Docs] default-props-match-prop-types, require-default-props, sort-prop-types: fix typos (#3279 @nix6839)
  • [Refactor] improve performance of rule merging (#3281 @golopot)
  • [Refactor] improve performance of component detection (#3276 @golopot)