Skip to content

Releases: jsx-eslint/eslint-plugin-react

v7.14.2

24 Jun 20:39
Compare
Choose a tag to compare

Fixed

v7.14.1

24 Jun 11:18
Compare
Choose a tag to compare

Fixed

  • Fix prop-types crash on multiple destructuring (#2319 @golopot)

v7.14.0

23 Jun 21:47
Compare
Choose a tag to compare

Added

Fixed

  • Fix no-did-mount-set-state and no-did-update-set-state to handle cDU and cDM defined as class properties (#1595 @jaaberg)
  • Fix sort-prop-types cash when a shape PropType is defined in a variable (#1749 @alexzherdev)
  • Fix no-unused-state false positive when using state of non-lifecycle method (#2274 @golopot)
  • Fix static-property-placement false positive when accessing static property inside method (#2283 @dmason30)
  • Fix prop-type detection for annotated props with default value (#2298 @yannickcr)

Changed

v7.13.0

23 Jun 19:35
f39829f
Compare
Choose a tag to compare

Added

Fixed

  • jsx-props-no-multi-spaces: support generic components (ts) (#2256, @mateuszsokola)
  • prop-types: fix case with destructuring and default param (#2246, @golopot)
  • prefer-stateless-function: Ignoring pure components without props and context usage (#2238, @pawelnvk)
  • propTypes: resolveSuperParameterPropsType: add null check (#2232, @jedwards1211)
  • self-closing-comp: stop reporting single-line spaces (#2210, @golopot)
  • require-render-return: more accurate report location (#2229, @golopot)
  • sort-prop-types: Fix sorting props with numeric keys (#2230, @pawelnvk)
  • display-name: fix false negative around nested functions (#2225, @dwelle)
  • no-unknown-property: fix case like <Foo.bar> (#2207, @golopot)
  • jsx-curly-brace-presence: accept multiline template string (#2203, @golopot)
  • jsx-one-expression-per-line: fix when using tabs (#2198, @Ohar)
  • prop-types: Fix false positive on computed member expression (#2202, @golopot)
  • jsx-sort-default-props: fix case with spread (#2182, @VincentLanglet)
  • no-this-in-sfc: Fix false positive on SFC defined as object property (#2147, @yannickcr)
  • sort-comp: correctly recognize instance variables declared without explicit value (#2183, @yannickcr)
  • no-unused-state: fix set state callback destructing & state use inside callback ([#2151][], @barakyosi)
  • no-multi-comp: correctly ignore wrapped stateless components: (#2145, @yannickcr)
  • display-name: avoid crash on for..of (#2137, @ljharb)

Changed

  • [Docs] no-access-state-in-setstate: Use syntax highlighting for examples ([#2160][], @pReya)
  • [Docs] jsx-fragments: add "fixable" note (#2143, @joshunger)
  • [Docs] Added shared settings info, React version default note (#2180, @samsch)
  • [Tests] jsx-curly-spacing: add regression test case (#2206, @ColCh)

v7.12.4

17 Jan 07:22
433cc3f
Compare
Choose a tag to compare

Fixed

Changed

v7.12.3

04 Jan 22:57
2f5cec9
Compare
Choose a tag to compare

Fixed

Changed

v7.12.2

02 Jan 23:55
c93cbc6
Compare
Choose a tag to compare

Fixed

v7.12.1

01 Jan 22:27
0202de3
Compare
Choose a tag to compare

Fixed

Changed

v7.12.0

28 Dec 06:54
a83d65c
Compare
Choose a tag to compare

Added

Fixed

Changed

[`default-props-match-prop-type...

Read more

v7.11.1

28 Dec 01:47
fb745ab
Compare
Choose a tag to compare

Fixed

Changed