Eslint Plugin React: v7.29.0 Release

Release date:
February 25, 2022
Previous version:
v7.28.0 (released December 22, 2021)
Magnitude:
3,950 Diff Delta
Contributors:
17 total committers
Data confidence:
Commits:

82 Commits in this Release

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

Authored August 13, 2020
Authored February 22, 2022
Authored February 21, 2022
Authored November 12, 2021
Authored February 19, 2022
Authored February 3, 2022
Authored January 27, 2022
Authored February 20, 2022
Authored February 4, 2022
Authored February 21, 2022
Authored February 22, 2022
Authored February 15, 2022
Authored February 18, 2022

Top Contributors in v7.29.0

ljharb
duhamelgm
tosmolka
vedadeepta
Primajin
stefanbuck
wangkai1994
RedTn
apepper
niik

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

  • add [hook-use-state] rule to enforce symmetric useState hook variable names ([#2921][] @duncanbeevers)
  • [jsx-no-target-blank]: Improve fixer with option allowReferrer ([#3167][] @apepper)
  • [jsx-curly-brace-presence]: add "propElementValues" config option ([#3191][] @ljharb)
  • add [iframe-missing-sandbox] rule ([#2753][] @tosmolka @ljharb)
  • [no-did-mount-set-state], [no-did-update-set-state]: no-op with react >= 16.3 ([#1754][] @ljharb)
  • [jsx-sort-props]: support multiline prop groups ([#3198][] @duhamelgm)
  • [jsx-key]: add warnDuplicates option to warn on duplicate jsx keys in an array ([#2614][] @ljharb)
  • [jsx-sort-props]: add locale option ([#3002][] @ljharb)

Fixed

  • [prop-types], propTypes: add support for exported type inference ([#3163][] @vedadeepta)
  • [no-invalid-html-attribute]: allow 'shortcut icon' on link ([#3174][] @Primajin)
  • [prefer-exact-props] improve performance for Identifier visitor ([#3190][] @meowtec)
  • propTypes: Handle TSTypeReference in no-unused-prop-type ([#3195][] @niik)
  • [sort-prop-types]: avoid repeated warnings of the same node/reason ([#519][] @ljharb)
  • [jsx-indent]: Fix indent handling for closing parentheses ([#620][] @stefanbuck])
  • [prop-types/propTypes]: follow a returned identifier to see if it is JSX ([#1046][] @ljharb)
  • [no-unused-state]: TS: support getDerivedStateFromProps as an arrow function ([#2061][] @ljharb)
  • [no-array-index-key]: catch .toString and String() usage ([#2813][] @RedTn)
  • [function-component-definition]: do not break on dollar signs ([#3207][] @ljharb)
  • [prefer-stateless-function]: avoid a crash inside doctrine ([#2596][] @ljharb)
  • [prop-types]: catch infinite loop ([#2861][] @ljharb)
  • [forbid-prop-types]: properly report name in error message; check undestructured arguments ([#2945][] @ljharb)

Changed

  • [readme] change [jsx-runtime] link from branch to sha ([#3160][] @tatsushitoji)
  • [Docs] HTTP => HTTPS ([#3133][] @Schweinepriester)
  • [readme] Some grammar fixes ([#3186][] @JJ)
  • [Docs] [jsx-no-target-blank]: Improve readme ([#3169][] @apepper)
  • [Docs] [display-name]: improve examples ([#3189][] @golopot)
  • [Refactor] [no-invalid-html-attribute]: sort HTML_ELEMENTS and messages ([#3182][] @Primajin)
  • [Docs] [forbid-foreign-prop-types]: document allowInPropTypes option ([#1815][] @ljharb)
  • [Refactor] [jsx-sort-default-props]: remove unnecessary code ([#1817][] @ljharb)
  • [Docs] [jsx-no-target-blank]: fix syntax highlighting ([#3199][] @shamrin)
  • [Docs] [jsx-key]: improve example ([#3202][] @chnakamura)
  • [Refactor] [jsx-key]: use more AST selectors (@ljharb)

New Contributors

Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.28.0...v7.29.0