Eslint Plugin React: v7.0.0 Release

Release date:
May 6, 2017
Previous version:
v7.0.0-rc.1 (released May 1, 2017)
Magnitude:
69 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

Top Contributors in v7.0.0

yannickcr
Slumber86

Directory Browser for v7.0.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

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](README.md#configuration) 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](docs/rules/jsx-wrap-multilines.md#rule-details) (#790 @ColCh)
  • jsx-no-undef will not check the global scope by default. You can force it with the [allowGlobals](docs/rules/jsx-no-undef.md#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