Skip to content

Releases: jsx-eslint/eslint-plugin-react

v6.10.0

15 Feb 23:55
Compare
Choose a tag to compare

Added

Fixed

  • Fix require-default-props crash (#1029)
  • Fix require-default-props rule when using Flow type from assignment (#1043 @wyze @carlrosell)
  • Fix style-prop-object to not warn with explicit null or undefined (#812 @ljharb)
  • Fix no-unused-prop-types props detection in stateless components (#885 @BarryThePenguin)
  • Fix display-name false positive with document.createElement (#996 @jomasti)
  • Fix ESLint 2 compatibility (@ljharb)

Changed

v6.9.0

08 Jan 19:51
Compare
Choose a tag to compare

Added

  • Add support for variable reference to sort-prop-types (#622)

Fixed

  • Fix Node.js 0.10 support (#1000 @ljharb)
  • Fix prop-types to correctly assign props to components (#991)

Changed

v6.8.0

04 Dec 23:47
Compare
Choose a tag to compare

Added

Fixed

  • Fix jsx-indent with multiline jsx in ternaries (#966)
  • Fix component detection to ignore async functions (#989 @taion)
  • Fix jsx-curly-spacing autofix to not delete comments (#648)
  • FIx auto-enabling of eslint-plugin-react in exported configurations (#984 @jamischarles)

Changed

v6.7.1

15 Nov 00:10
Compare
Choose a tag to compare

Fixed

  • Fix jsx-tag-spacing crash when options object isn't passed (#955 @daltones)

v6.7.0

14 Nov 17:27
Compare
Choose a tag to compare

Added

  • Add jsx-tag-spacing rule (#693 @Kovensky)

Fixed

  • Fix jsx-indent for parenthesized ternaries (#945 @voxpelli)
  • Fix jsx-indent for multiline ternaries
  • Fix jsx-indent for arrays in jsx (#947)
  • Fix no-danger-with-children crash with spread on global variables (#921)
  • Fix jsx-wrap-multilines ternaries handling (#916)

Changed

  • Enable no-unused-prop-types skipShapeProps option by default to limit false positive (#953 @everdimension)

v6.6.0

06 Nov 16:00
Compare
Choose a tag to compare

Added

Fixed

  • Fix no-unused-prop-types crash with destructured prop-types (#938)
  • Fix jsx-indent in multi-line conditional expressions (#901, #907)
  • Fix sort-comp bad error message if 2 methods in the same group must be moved (#507)

Changed

v6.5.0

01 Nov 21:41
Compare
Choose a tag to compare

Added

  • Add tab support to jsx-closing-bracket-location auto fixer (#909 @arperry)
  • Add tab and space support to jsx-indent auto fixer (#608 @jayphelps)
  • Add multiline-multiprop option to jsx-first-prop-new-line (#883 @kentor)

Fixed

  • Fix forbid-component-props crash with self reference JSX element (#839 @xeodou)
  • Fix jsx-indent to ignore lines starting by literals (#900)
  • Fix no-set-state to correctly detect setState in arrow functions (#931)

Changed

v6.4.1

10 Oct 21:24
Compare
Choose a tag to compare

Fixed

  • Fix jsx-indent for arrays (#897, #898)
  • Fix jsx-indent to allow multi-line logical expressions with one level of indent (#896)

v6.4.0

09 Oct 15:57
Compare
Choose a tag to compare

Added

Fixed

  • Fix jsx-no-bind crash on arrow functions (#854)
  • Fix display-name false negative on es6-style method in React.createClass (#852)
  • Fix prefer-stateless-function to allow components with childContextTypes (#853)
  • Fix no-children-prop spread support (#862 @randycoulman)
  • Fix no-unused-prop-types to ignore validation when spread is used (#840)
  • Fix jsx-closing-bracket-location for multi-line prop (#889)
  • Fix jsx-indent in multi-line function calls (#895)
  • Fix jsx-indent in multi-line logical expressions (#540)

Changed

v6.3.0

19 Sep 23:38
Compare
Choose a tag to compare

Added

Fixed

  • Fix style-prop-object crash (#834)
  • Fix style-prop-object false positive on computed properties (#820)
  • Fix style-prop-object to deal with null and spread props that can't be resolved (#809 #812 @petersendidit)