Eslint Plugin React: v7.20.0 Release

Release date:
May 13, 2020
Previous version:
v7.19.0 (released March 6, 2020)
Magnitude:
2,839 Diff Delta
Contributors:
17 total committers
Data confidence:
Commits:

26 Commits in this Release

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

Authored January 18, 2020
Authored May 13, 2020
Authored March 15, 2020
Authored May 7, 2020
Authored March 16, 2020

Top Contributors in v7.20.0

golopot
silvenon
ljharb
iiison
Axnyff
geshwho
toshi-toma
seancrater
yacinehmito
tanmoyopenroot

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

  • support eslint v7 (#2635 @ljharb, @toshi-toma)
  • [forbid-component-props][]/[forbid-dom-props][]: Allow a custom message with forbid props (#2615 @mtamhankar1)
  • [jsx-no-literals][]: add ignoreProps option to ignore props validation (#2146 @iiison)

Fixed

  • [jsx-sort-props][]: only use localeCompare when case is ignored (#2556 @tanmoyopenroot)
  • [jsx-key][]: add a failing test case for optional chaining (#2610 @JonathanLee-LX)
  • [no-unused-state][]: handle optional chaining (#2588 @golopot)
  • [jsx-pascal-case][]: Do not consider namespaces when checking for DOM (#2638 @yacinehmito)
  • [jsx-curly-spacing][], [jsx-no-bind][], usedPropTypes util: avoid node.start and node.end (25b1936 @toshi-toma)
  • [jsx-no-target-blank][]: allow no-referrer without noopener by default (#2043 @seancrater)
  • [button-has-type][]: improve message when non-static value is used (aecff62 @golopot)
  • [no-adjacent-inline-elements][]: prevent crash on nullish children (#2621 @Rogdham)
  • [prop-types][]: avoid crash when spreading any type (#2606 @golopot))
  • [require-render-return][]: add missing "a" (#2604 @leothorp)
  • [jsx-no-comment-textnodes][]: fix for @typescript-eslint/parser (#2601 @Axnyff)
  • [displayName][]: avoid a crash when using React.memo (#2587 @golopot)

Docs

  • Clean up examples in rule docs (#2546 @silvenon)
  • [readme] Add Rules of Hooks to Other useful plugins section (#2633 @petetnt)
  • [no-this-in-sfc][]: backtick this (#2616 @mrflip)
  • [function-component-definition][]: Fix unnamedComponents option examples (#2608 @vkrol))

Changed

  • [Deps] Move "semver" to devDependencies (#2595 @rajivshah3)
  • [eslint] remove operator-linebreak override (#2578 @golopot)
  • [Tests] button-has-type: ensure no mistakenly allowed identifiers named button/submit/reset (#2625 @golopot)
  • [Tests] displayName: add a test case (#2593 @golopot)
  • [Dev Deps] update @types/eslint, @types/estree, @types/node, @typescript-eslint/parser, coveralls, eslint-config-airbnb-base, eslint-plugin-import, typescript