Skip to content

Releases: jsx-eslint/eslint-plugin-react

v3.8.0

07 Nov 17:20
Compare
Choose a tag to compare

Added

  • Add ignoreStateless option to no-multi-comp (#290)

Fixed

  • Fix classes with properties to always be marked as components (#291)
  • Fix ES5 class detection when using createClass by itself (#297)
  • Fix direct props detection (#298)
  • Ignore functions containing the keyword this during component detection

v3.7.1

05 Nov 02:07
Compare
Choose a tag to compare

Fixed

  • Fix sort-comp crash on stateless components (#285)
  • Fix crash in ES5 components detection (#286)
  • Fix ES5 components detection from nested functions (#287)

v3.7.0

04 Nov 23:22
Compare
Choose a tag to compare

Added

Fixed

  • Fix a lot of issues about components detection, mostly related to stateless components (#264, #267, #268, #276, #277, #280)

Changed

  • Update dependencies

v3.6.3

19 Oct 23:12
Compare
Choose a tag to compare

Fixed

  • Fix display-name for stateless components (#256)
  • Fix prop-types props validation in constructor (#259)
  • Fix typo in README (#261 @chiedojohn)

v3.6.2

18 Oct 21:51
Compare
Choose a tag to compare

Fixed

  • Fix wrong prop-types detection (#255)

v3.6.1

18 Oct 20:18
Compare
Choose a tag to compare

Fixed

  • Fix props validation in constructor (#254)

v3.6.0

18 Oct 17:41
Compare
Choose a tag to compare

Added

  • Add support for stateless function components to display-name and prop-types (#237)
  • Add callbacksLast option to jsx-sort-props and jsx-sort-prop-types (#242 @Daniel15)
  • Add prefer-es6-class rule (#247 @hamiltondanielb)

Fixed

  • Fix forbid-prop-types crash with destructured PropTypes (#230 @epmatsw)
  • Fix forbid-prop-types to do not modify AST directly (#249 @rhysd)
  • Fix prop-types crash with empty destructuring (#251)
  • Fix prop-types to not validate computed keys in destructuring (#236)

Changed

  • Update dependencies
  • Improve components detection (#233)
  • Documentation improvements (#248 @dguo)

v3.5.1

30 Sep 22:38
Compare
Choose a tag to compare

Fixed

  • Fix no-direct-mutation-state to report only in React components (#229)
  • Fix forbid-prop-types for arrayOf and instanceOf (#230)

Changed

v3.5.0

28 Sep 20:38
Compare
Choose a tag to compare

Added

Fixed

  • Fix no-did-mount/update-set-state rules for ES6 classes

Changed

  • Update dependencies
  • Documentation improvements (#222 @Andersos)

v3.4.2

18 Sep 19:28
Compare
Choose a tag to compare

Fixed

  • Only display the jsx-quotes deprecation warning with the default formatter (#221)