Skip to content

Releases: jsx-eslint/eslint-plugin-react

v7.8.0-rc.0

10 May 09:41
Compare
Choose a tag to compare
v7.8.0-rc.0 Pre-release
Pre-release

Added

  • Add support for fragments to react-in-jsx-scope (#1758)
  • Add support for Flow generic PropType to require-default-props (#1724 @miziak)
  • Add component whitelist option to forbid-component-props (#1732 @ThiefMaster)
  • Add support for React 16.3 lifecycle methods to no-unused-prop-types (#1681 @bvaughn)
  • Add support for React 16.3 lifecycle methods to sort-comp (#1767 @joe-denea)
  • Add support for React 16.3 lifecycle methods to no-typos
  • Add support for prevState and nextState to no-unused-state (#1759)
  • Add warnings for componentWillMount, componentWillReceiveProps and componentWillUpdate lifecycle methods in no-deprecated (#1750 @sergei-startsev)

Fixed

Changed

v7.7.0

20 Feb 08:03
abe8381
Compare
Choose a tag to compare

Added

Fixed

Changed

v7.6.1

29 Jan 07:22
f7441bb
Compare
Choose a tag to compare

Fixed

v7.6.0

25 Jan 22:49
Compare
Choose a tag to compare

Added

Fixed

  • Fix crashes in no-access-state-in-setstate (#1559 @jomasti, #1611 @pfhayes)
  • Fix crash in require-optimization when encountering arrays with empty items as values in object (#1621 @kamataryo)
  • Fix crash in no-unused-prop-types when passing an empty function as a PropType (#1542 #1581 @kevinzwhuang)
  • Fix crash in no-typos when using PropType.shape without arguments (#1471 @mrichmond)
  • Fix crash when using Unions in flow propTypes (#1468 @justinanastos)
  • Fix missing meta in jsx-tag-spacing (#1650 @flyerhzm)
  • Fix no-unused-state to detect usage of this.state as an object (#1572)
  • Fix no-access-state-in-setstate to detect when the state variable is destructured from this.state (#1597 @jaaberg)
  • Fix jsx-no-literals to correctly find string literals part of BinaryExpressions (#1511 @jaaberg)
  • Fix no-typos false positive on custom propTypes with isRequired (#1607 @lfades)
  • Fix prop-types to check for nextProps in componentWillReceiveProps (#1636 @xjmdoo)
  • Fix no-unknown-property to not pascal-casing crossorigin attribute and only allow it on script/img/video (#1642 @ljharb)

Changed

v7.5.1

19 Nov 16:45
Compare
Choose a tag to compare

Fixed

Changed

v7.5.0

18 Nov 17:27
Compare
Choose a tag to compare

Added

  • Add jsx-one-expression-per-line rule (#1497 @TSMMark)
  • Add destructuring-assignment rule (#1462 @DianaSuvorova)
  • Add no-access-state-in-setstate rule (#1374 @jaaberg)
  • Add button-has-type rule (#1525 @Hypnosphi)
  • Add warnings for React.DOM factories in no-deprecated (#1530 @backjo)
  • Add sortShapeProp option to sort-prop-types (#1476 @jomasti)
  • Add parens-new-line option to jsx-wrap-multilines (#1475 @jomasti)
  • Add checkContextTypes and checkChildContextTypes options to forbid-prop-types (#1533 @jomasti)
  • Add forbidDefaultForRequired option to require-default-props (#1524 @jomasti)
  • Add new nodes support to jsx-wrap-multilines (#1384 @evgeny-petukhov)

Fixed

Changed

v7.4.0

24 Sep 18:16
Compare
Choose a tag to compare

Added

  • Add Flow 0.53 support (#1376 @jseminck)
  • Add jsx-curly-brace-presence rule (#1310 @jackyho112)
  • Add support for Flow IntersectionTypeAnnotation to prop-types and no-unused-prop-types (#1364 #1323 @jseminck)
  • Add support for Flow TypedArgument to no-unused-prop-types (#1412 @jseminck)
  • Add support for Flow ClassExpressions to prop-types (#1400 @jseminck)
  • Add support for Flow read-only props to no-unused-prop-types (#1388 @jseminck)
  • Add more tests for prop-types and no-unused-prop-types (#1381 @DianaSuvorova)
  • Add support for increment and decrement operations to no-direct-mutation-state (#1386 @zpao)

Fixed

Changed

v7.4.0-rc.1

12 Sep 19:22
Compare
Choose a tag to compare
v7.4.0-rc.1 Pre-release
Pre-release

Added

  • Add support for increment and decrement operations to no-direct-mutation-state (#1386 @zpao)

Fixed

  • Fix prop-types and no-unused-prop-types crash with IntersectionTypeAnnotation (#1413 @jseminck)

v7.4.0-rc.0

05 Sep 21:54
Compare
Choose a tag to compare
v7.4.0-rc.0 Pre-release
Pre-release

Added

Fixed

Changed

v7.3.0

21 Aug 19:41
Compare
Choose a tag to compare

Added

  • Add checks for propTypes, contextTypes and childContextTypes to no-typos (#213 @DianaSuvorova)

Fixed

  • Fix boolean-prop-naming crash (#1369 @EvHaus)
  • Fix no-typos crash (#1353 @jseminck)
  • Fix require-default-props stopping when it finds a component without props (#1380 @brgibson)
  • Fix no-direct-mutation-state detection with nested components (#1382)

Changed