Skip to content

Releases: jsx-eslint/eslint-plugin-react

v5.0.1

18 Apr 08:43
Compare
Choose a tag to compare

Fixed

  • Fix require-render-return to not check stateless functions (#550)

v5.0.0

17 Apr 19:14
Compare
Choose a tag to compare

Added

Breaking

  • Update rules for React 15:
    • Add warnings for LinkedStateMixin, ReactPerf.printDOM and ReactPerf.getMeasurementsSummaryMap in no-deprecated
    • Allow stateless components to return null in prefer-stateless-function
    • Remove SVG attributes warnings (#490)

If you're still not using React 15 you can keep the old behavior by setting the React version to 0.14 in the shared settings.

Fixed

  • Rewrite require-render-return rule (#542, #543)
  • Fix prefer-stateless-function crash (#544)
  • Fix external propTypes handling (#545)
  • Do not mark inline functions in JSX as components (#546)

Changed

  • Update dependencies
  • Documentation improvements

v4.3.0

06 Apr 23:18
Compare
Choose a tag to compare

Added

Fixed

  • Fix prefer-stateless-function for conditional JSX (#516)
  • Fix jsx-pascal-case to support single letter component names (#505 @dthielman)

Changed

v4.2.3

15 Mar 21:42
Compare
Choose a tag to compare

Fixed

  • Fix class properties retrieval in prefer-stateless-function (#499)

v4.2.2

14 Mar 20:19
Compare
Choose a tag to compare

Fixed

  • Rewrite prefer-stateless-function rule (#491)
  • Fix self-closing-comp to treat non-breaking spaces as content (#496)
  • Fix detection for direct props in prop-types (#497)
  • Fix annotated function detection in prop-types (#498)
  • Fix this usage in jsx-no-undef (#489)

Changed

  • Update dependencies
  • Add shared setting for React version

v4.2.1

08 Mar 22:07
Compare
Choose a tag to compare

Fixed

  • Fix sort-prop-types crash with spread operator (#478)
  • Fix stateless components detection when conditionally returning JSX (#486)
  • Fix case where props were not assigned to the right component (#485)
  • Fix missing getChildContext lifecycle method in prefer-stateless-function (#492)

v4.2.0

05 Mar 21:29
Compare
Choose a tag to compare

Added

  • Add support for Flow annotations on stateless components (#467)
  • Add prefer-stateless-function rule (#214)
  • Add auto fix for jsx-indent-props (#483 @shioju)

Fixed

  • Fix jsx-no-undef crash on objects (#469)
  • Fix propTypes detection when declared before the component (#472)

Changed

v4.1.0

23 Feb 22:20
Compare
Choose a tag to compare

Added

  • Add component detection for class expressions
  • Add displayName detection for class expressions in display-name (#419)

Fixed

  • Fix used props detection in components for which we are not confident in prop-types (#420)
  • Fix false positive in jsx-key (#456 @jkimbo)

Changed

v4.0.0

19 Feb 18:59
Compare
Choose a tag to compare

Added

  • Add jsx-space-before-closing rule (#244 @ryym)
  • Add support for destructing in function signatures to prop-types (#354 @lencioni)

Breaking

  • Add support for static methods to sort-comp. Static methods must now be declared first, see rule documentation (#128 @lencioni)
  • Add shareable config in place of default configuration. jsx-uses-vars is not enabled by default anymore, see documentation (#192)
  • Rename jsx-sort-prop-types to sort-prop-types. jsx-sort-prop-types still works but will trigger a warning (#87 @lencioni)
  • Remove deprecated jsx-quotes rule (#433 @lencioni)
  • display-name now accept the transpiler name by default. You can use the ignoreTranspilerName option to get the old behavior, see rule documentation (#440 @lencioni)

Fixed

  • Only ignore lowercase JSXIdentifier in jsx-no-undef (#435)
  • Fix jsx-handler-names regex (#425)
  • Fix destructured props detection in prop-types (#443)

Changed

v4.0.0-rc.1

15 Feb 21:04
Compare
Choose a tag to compare
v4.0.0-rc.1 Pre-release
Pre-release

Fixed

  • Fix jsx-handler-names regex (#425)
  • Fix destructured props detection in prop-types (#443)