Skip to content

Releases: jsx-eslint/eslint-plugin-react

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)

v3.4.1

16 Sep 22:50
Compare
Choose a tag to compare

Fixed

  • Fix jsx-quotes rule deprecation message (#220)

v3.4.0

16 Sep 16:43
Compare
Choose a tag to compare

Added

  • Add namespaced JSX support to jsx-no-undef (#219 @zertosh)
  • Add option to jsx-closing-bracket-location to configure different styles for self-closing and non-empty tags (#208 @evocateur)

Deprecated

  • Deprecate jsx-quotes rule, will now trigger a warning if used (#217)

v3.3.2

09 Sep 22:42
Compare
Choose a tag to compare

Changed

  • Add state in lifecycle methods for sort-comp rule (#197 @mathieudutour)
  • Treat component with render which returns createElement as valid (#206 @epmatsw)

Fixed

  • Fix allowed methods on arrayOf in prop-types (#146)
  • Fix default configuration for jsx-boolean-value (#210)

v3.3.1

31 Aug 23:26
Compare
Choose a tag to compare

Changed

  • Update dependencies
  • Update changelog to follow the Keep a CHANGELOG standards
  • Documentation improvements (#198 @lencioni)

Fixed

  • Fix jsx-closing-bracket-location for multiline props (#199)

v3.3.0

26 Aug 15:31
Compare
Choose a tag to compare

Added

Changed

  • Update dependencies

Fixed

  • Fix crash on propTypes declarations with an empty body (#193 @mattyod)

v3.2.3

16 Aug 14:15
Compare
Choose a tag to compare

Changed

  • Update dependencies

Fixed