Skip to content

Releases: jsx-eslint/eslint-plugin-react

v7.4.0

24 Sep 18:16
Compare
Choose a tag to compare

Added

  • Add Flow 0.53 support (#1376 @jseminck)
  • Add jsx-curly-brace-presence rule (#1310 @jackyho112)
  • Add support for Flow IntersectionTypeAnnotation to prop-types and no-unused-prop-types (#1364 #1323 @jseminck)
  • Add support for Flow TypedArgument to no-unused-prop-types (#1412 @jseminck)
  • Add support for Flow ClassExpressions to prop-types (#1400 @jseminck)
  • Add support for Flow read-only props to no-unused-prop-types (#1388 @jseminck)
  • Add more tests for prop-types and no-unused-prop-types (#1381 @DianaSuvorova)
  • Add support for increment and decrement operations to no-direct-mutation-state (#1386 @zpao)

Fixed

Changed

v7.4.0-rc.1

12 Sep 19:22
Compare
Choose a tag to compare
v7.4.0-rc.1 Pre-release
Pre-release

Added

  • Add support for increment and decrement operations to no-direct-mutation-state (#1386 @zpao)

Fixed

  • Fix prop-types and no-unused-prop-types crash with IntersectionTypeAnnotation (#1413 @jseminck)

v7.4.0-rc.0

05 Sep 21:54
Compare
Choose a tag to compare
v7.4.0-rc.0 Pre-release
Pre-release

Added

Fixed

Changed

v7.3.0

21 Aug 19:41
Compare
Choose a tag to compare

Added

  • Add checks for propTypes, contextTypes and childContextTypes to no-typos (#213 @DianaSuvorova)

Fixed

  • Fix boolean-prop-naming crash (#1369 @EvHaus)
  • Fix no-typos crash (#1353 @jseminck)
  • Fix require-default-props stopping when it finds a component without props (#1380 @brgibson)
  • Fix no-direct-mutation-state detection with nested components (#1382)

Changed

v7.2.1

14 Aug 11:48
Compare
Choose a tag to compare

Fixed

Changed

v7.2.0

09 Aug 21:51
Compare
Choose a tag to compare

Added

Fixed

Changed

v7.1.0

13 Jun 19:27
Compare
Choose a tag to compare

Added

Fixed

  • Fix prefer-stateless-function ignorePureComponents option when using class expressions (#1122 @dreid)
  • Fix void-dom-elements-no-children crash (#1195 @oliviertassinari)
  • Fix require-default-props quoted defaultProps detection (#1201)
  • Fix jsx-sort-props bug with ignoreCase and callbacksLast options set to true (#1175 @jseminck)
  • Fix no-unused-proptype false positive (#1183 #1135 @jseminck)
  • Fix jsx-no-target-blank to not issue errors for non-external URLs (#1216 @gfx)
  • Fix prop-types quoted Flow types detection (#1132 @ethanjgoldberg)
  • Fix no-array-index-key crash with key without value (#1242 @jseminck)

Changed

v7.0.1

13 May 18:34
Compare
Choose a tag to compare

Fixed

  • Fix jsx-curly-spacing allowMultiline option being undefined in some cases (#1179 @fatfisz)
  • Fix jsx-curly-spacing newline with object literals bug (#1180 @fatfisz)
  • Fix prop-types to not mark class static function as valid propTypes definition (#1174)
  • Fix prop-types crash with Flow spread operator (#1178)
  • Fix void-dom-elements-no-children crash on faulty createElement detection (#1101)
  • Fix require-default-props error message for quoted props (#1161)

Changed

v7.0.0

06 May 00:10
Compare
Choose a tag to compare

Added

  • Add no-will-update-set-state rule (#1139 @ManThursday)
  • Add import and destructuring support to no-deprecated
  • Add reservedFirst option to jsx-sort-props (#1134 @MatthewHerbst)

Breaking

  • Update rules for React 15.5.0:
    • Add warnings for React.PropTypes and React.createClass in no-deprecated (#1148 @Calyhre)
    • Update createClass component factory to createReactClass. This is used for React component detection, if you still using React.createClass use the shared settings to specify createClass as component factory
  • Drop Node.js < 4 support (#1038 @ljharb)
  • Add no-danger-with-children rule to recommended rules (#748 @ljharb)
  • Add no-string-refs rule to recommended rules (#749 @ljharb)
  • Add jsx-key rule to recommended rules (#750 @ljharb)
  • Add jsx-no-comment-textnodes rule to recommended rules (#751 @ljharb)
  • Add jsx-no-target-blank rule to recommended rules (#752 @ljharb)
  • Add no-unescaped-entities rule to recommended rules (#841 @ljharb)
  • Add no-children-prop rule to recommended rules (#842 @ljharb)
  • Remove deprecated wrap-multilines rule, use jsx-wrap-multilines instead
  • Remove deprecated no-comment-textnodes rule, use jsx-no-comment-textnodes instead
  • Remove deprecated require-extension rule, use the eslint-plugin-import extensions rule instead
  • Deprecate jsx-space-before-closing rule, use the jsx-tag-spacing rule instead. jsx-space-before-closing still works but will trigger a warning (#1070 @afairb)
  • jsx-first-prop-new-line default is now multiline-multiprop (#802 @kokarn)
  • jsx-wrap-multilines now checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)
  • jsx-no-undef will not check the global scope by default. You can force it with the allowGlobals option (#1013 @jomasti)

Fixed

  • Fix no-unused-prop-types false positive with nextProps (#1079 @Kerumen)
  • Fix prefer-stateless-function to not warn on classes with decorators (#1034 @benstepp)

Changed

v7.0.0-rc.1

01 May 19:59
Compare
Choose a tag to compare
v7.0.0-rc.1 Pre-release
Pre-release

Added

Breaking

  • Drop Node.js < 4 support (#1038 @ljharb)
  • Add no-danger-with-children rule to recommended rules (#748 @ljharb)
  • Add no-string-refs rule to recommended rules (#749 @ljharb)
  • Add jsx-key rule to recommended rules (#750 @ljharb)
  • Add jsx-no-comment-textnodes rule to recommended rules (#751 @ljharb)
  • Add jsx-no-target-blank rule to recommended rules (#752 @ljharb)
  • Add no-unescaped-entities rule to recommended rules (#841 @ljharb)
  • Add no-children-prop rule to recommended rules (#842 @ljharb)
  • Remove deprecated wrap-multilines rule, use jsx-wrap-multilines instead
  • Remove deprecated no-comment-textnodes rule, use jsx-no-comment-textnodes instead
  • Remove deprecated require-extension rule, use the eslint-plugin-import extensions rule instead
  • Deprecate jsx-space-before-closing rule, use the jsx-tag-spacing rule instead. jsx-space-before-closing still works but will trigger a warning (#1070 @afairb)
  • jsx-first-prop-new-line default is now multiline-multiprop (#802 @kokarn)
  • jsx-wrap-multilines now checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)
  • jsx-no-undef will not check the global scope by default. You can force it with the allowGlobals option (#1013 @jomasti)