v7.15.0
Added
- add
jsx-no-useless-fragment
rule (#2261 @golopot) - [
jsx-handler-name
][]: allowfalse
to disableeventHandlerPrefix
/eventHandlerPropPrefix
(#2410 @tanmoyopenroot) sort-comp
: addstatic-variables
grouping (#2408 @vedadeepta)jsx-no-literals
: AddallowedStrings
option (#2380 @benhollander)no-multi-comp
: Added handling forforwardRef
andmemo
wrapping components declared in the same file (#2184 @jenil94)jsx-pascal-case
:allowAllCaps
option now allowsSCREAMING_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
: addisWhiteSpaces
tolib/util/jsx
(#2409 @vedadeepta)