Skip to content

Releases: jsx-eslint/eslint-plugin-react

v6.0.0-alpha.1

08 Jul 13:08
Compare
Choose a tag to compare
v6.0.0-alpha.1 Pre-release
Pre-release

Fixed

  • Fix prop-types crash when accessing constructor on props (#654)
  • Fix jsx-filename-extension to not check filenames on text input (#662 @ljharb)
  • Fix no-comment-textnodes incorrectly catching urls (#664 @petersendidit)

Breaking

Changed

  • Update dependencies
  • Update Travis CI and AppVeyor CI configurations (@ljharb)

v5.2.2

17 Jun 20:13
Compare
Choose a tag to compare

Fixed

  • Fix jsx-no-bind crash (#641)

v5.2.1

16 Jun 23:49
Compare
Choose a tag to compare

Fixed

  • Fix jsx-pascal-case for namespaced components (#637 @evcohen)

v5.2.0

16 Jun 22:39
Compare
Choose a tag to compare

Added

  • Add require-optimization rule (#240 @EvNaverniouk)
  • Add jsx-filename-extension rule (#495 @lencioni)
  • Add no-render-return-value rule (#531 @iamdustan)
  • Add no-comment-textnodes rule (#616 @benvinegar)
  • Add objectLiterals option to jsx-curly-spacing (#388, #211 @casesandberg @ljharb)
  • Add option to self-closing-comp to check html tags (#572 @gitim)
  • Add ignore option to no-unknown-property rule (#631 @insin)
  • Add support for ES7 bind operator to jsx-handler-names (#630)
  • Add support for explicit declaration that class extends React.Component (#68 @gausie)

Fixed

  • Fix jsx-closing-bracket-location multiline prop support (#493 @tuures)
  • Fix prop-types for props that where not assigned to the right component (#591)
  • Fix display-name when JSON style is used for defining components (#590 @gitim)
  • Fix jsx-no-bind for bind detection in render when assigned to a variable (#474 @petersendidit)
  • Fix jsx-curly-spacing for spread operator (#606 @gitim)
  • Fix sort-comp crash on spread operator (#624)
  • Fix prop-types crash when destructuring props with spread only

Changed

v5.1.1

09 May 23:08
Compare
Choose a tag to compare

Fixed

  • Fix require-render-return crash (#589)

v5.1.0

09 May 22:19
Compare
Choose a tag to compare

Added

  • Add jsx-no-target-blank rule (#582 @Gasparila)
  • Add allowAllCaps and ignore options to jsx-pascal-case (#575)
  • Add class properties support to require-render-return (#564)

Fixed

  • Fix jsx-closing-bracket-location fixer (#533 @dtinth)
  • Fix require-render-return to only check valid render methods (#563)
  • Fix detection to allow simple this usage in fonctional components (#576)
  • Fix forbid-prop-types crash (#579)
  • Fix comment handling in jsx-curly-spacing (#584)

Changed

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)