yarn eslint-plugin-react 7.15.0
v7.15.0

latest releases: 7.34.1, 7.34.0, 7.33.2...
4 years ago

Added

  • add jsx-no-useless-fragment rule (#2261 @golopot)
  • [jsx-handler-name][]: allow false to disable eventHandlerPrefix/eventHandlerPropPrefix (#2410 @tanmoyopenroot)
  • sort-comp: add static-variables grouping (#2408 @vedadeepta)
  • jsx-no-literals: Add allowedStrings option (#2380 @benhollander)
  • no-multi-comp: Added handling for forwardRef and memo wrapping components declared in the same file (#2184 @jenil94)
  • jsx-pascal-case: allowAllCaps option now allows SCREAMING_SNAKE_CASE (#2364 @TylerR909)

Fixed

  • jsx-indent: Fix false positive when a jsx element is the last statement within a do expression (with tests) (#2200 @Kenneth-KT)
  • jsx-curly-brace-presence: fix jsx tags in braces (#2422 @tanmoyopenroot)
  • display-name: Fix false positives (#2399 @BPScott)
  • jsx-curly-brace-presence: report unnecessary curly braces with children on next line (#2409 @vedadeepta)
  • no-unused-prop-types: false positive with callback (#2375 @golopot)
  • Fix prop-types detection collision on renamed props (#2383 @yannickcr)
  • jsx-sort-props: use localeCompare rather than comparison operator (#2391 @tanmoyopenroot)
  • jsx-pascal-case: allow one-letter-named components (#2395 @Haegin)
  • jsx-wrap-multilines: fix incorrect formatting (#2392 @tanmoyopenroot)
  • require-optimization: fix when using arrow function in class components (#2385 @jenil94)
  • no-deprecated: Deprecate cWM/cWRP/cWU lifecycle methods since React 16.9.0 (#2378 @meowtec)
  • jsx-key: improve docs and confusing error message (#2367 @kaykayehnn)
  • Recognize props wrapped in flow $ReadOnly<> utility type (#2361 @lukeapage)
  • prop-types: false positive with setState updator (#2359 @golopot)

Changed

  • [Docs] no-access-state-in-setstate: update grammar ([#2418][] @neaumusic)
  • jsx-curly-brace-presence, jsx-one-expression-per-line, no-danger-with-children: add isWhiteSpaces to lib/util/jsx (#2409 @vedadeepta)

Don't miss a new eslint-plugin-react release

NewReleases is sending notifications on new releases.