Skip to content

Releases: jsx-eslint/eslint-plugin-react

v6.1.2

17 Aug 21:47
Compare
Choose a tag to compare

Fixed

Changed

  • Documentation improvements

v6.1.1

15 Aug 22:08
Compare
Choose a tag to compare

Fixed

  • Fix prop-types on annotated components (#766)
  • Fix no-danger-with-children spread support (#767 @petersendidit)

Changed

v6.1.0

14 Aug 13:31
Compare
Choose a tag to compare

Added

Fixed

  • Fix Node.js 0.10 support (#746)
  • Fix prop-types on annotated components (#729)
  • Fix require-optimization test for function declaration (#744 @Tom910)
  • Fix jsx-uses-var to handle nested object properties (#761 @yayalice)
  • Fix rules metadata

Changed

v6.0.0

01 Aug 19:45
Compare
Choose a tag to compare

Added

  • Add an all sharable configuration with all rules enabled (#674 @pfhayes)
  • Add no-find-dom-node rule (#678)
  • Add shorthandFirst option to jsx-sort-props (#391 @mathieumg)
  • Add allowDecorators option to require-optimization (#669 @Tom910)

Breaking

  • Deprecate require-extension rule, use the eslint-plugin-import extensions rule instead. require-extension still works but will trigger a warning
  • Enable allow-in-func mode by default in no-did-mount-set-state and no-did-update-set-state rules (#702 @lencioni)
  • Enable html tags check by default in self-closing-comp
  • Remove pragma option from jsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni)
  • Remove react option from no-deprecated rule, use the shared settings to specify the React version (#700 @lencioni)
  • Add require-render-return rule to recommended rules
  • Remove no-danger from recommended rules (#636 @mjackson)
  • Remove no-did-mount-set-state and no-did-update-set-state from recommended rules (#596)
  • Remove deprecated jsx-sort-prop-types rule, use sort-prop-types instead (#549 @lencioni)
  • Rename no-comment-textnodes to jsx-no-comment-textnodes. no-comment-textnodes still works but will trigger a warning (#668 @lencioni)
  • Rename wrap-multilines to jsx-wrap-multilines. wrap-multilines still works but will trigger a warning (#668 @lencioni)
  • Add ESLint as peerDependency (#657 @jokeyrhyme)
  • Add Node.js 0.10 as minimum required version (#657 @jokeyrhyme)

Fixed

  • Fix jsx-handler-names incorrectly flagging only (#571 @lencioni)
  • Fix spread props cash in jsx-no-target-blank (#679 @randycoulman)
  • Fix require-optimization warning on stateless components (#687)
  • Fix jsx-uses-vars that incorrectly marked some variables as used (#694 @lencioni)
  • Fix no-unknown-property check on SVG attributes (#718)
  • Fix jsx-no-bind reporting errors on render functions that don't return JSX (#663 @petersendidit)
  • Fix jsx-closing-bracket-location autofix when location is set to props-aligned (#684 @pfhayes)
  • Fix prop-types for destructured arguments being assigned to the parent stateless component in some cases (#698)
  • Fix prop-types for JSX return being assigned to the parent function in some cases (#504)
  • Fix jsx-curly-spacing for reporting on JSX content by mistake (#671)
  • Fix prop-types crash when accessing constructor on props (#654)
  • Fix jsx-filename-extension to not check filenames on text input (#662 @ljharb)
  • Fix jsx-no-comment-textnodes incorrectly catching urls (#664 @petersendidit)

Changed

  • Only report jsx-filename-extension warning once per file (#660 @mathieumg)
  • Update SVG and DOM attribute list for no-unknown-property
  • Update rules to use the new ESLint rule format (#661 @petersendidit)
  • Update dependencies
  • Documentation improvements (#724 @lencioni)
  • Update Travis CI and AppVeyor CI configurations (@ljharb)

v6.0.0-rc.1

31 Jul 20:44
Compare
Choose a tag to compare
v6.0.0-rc.1 Pre-release
Pre-release

Fixed

v6.0.0-rc.0

29 Jul 19:25
Compare
Choose a tag to compare
v6.0.0-rc.0 Pre-release
Pre-release

Fixed

  • Fix spread props crash in jsx-no-target-blank (#679 @randycoulman)
  • Fix require-optimization warning on stateless components (#687)
  • Fix jsx-uses-vars that incorrectly marked some variables as used (#694 @lencioni)
  • Fix no-unknown-property check on SVG attributes (#718)
  • Fix all config to not include deprecated rules (#723 @pfhayes)

Breaking

  • Deprecate require-extension rule, use the eslint-plugin-import extensions rule instead
  • Enable allow-in-func mode by default in no-did-mount-set-state and no-did-update-set-state rules (#702 @lencioni)
  • Enable html tags check by default in self-closing-comp
  • Remove pragma option from jsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni)
  • Remove react option from no-deprecated rule, use the shared settings to specify the React version (#700 @lencioni)
  • Remove no-danger from recommended rules (#636 @mjackson)
  • Remove no-did-mount-set-state and no-did-update-set-state from recommended rules (#596)
  • Add require-render-return rule to recommended rules

Changed

  • Update SVG and DOM attribute list for no-unknown-property
  • Update rules to use the new ESLint rule format (#661 @petersendidit)
  • Documentation improvements (#724 @lencioni)

v6.0.0-alpha.2

23 Jul 22:22
Compare
Choose a tag to compare
v6.0.0-alpha.2 Pre-release
Pre-release

Added

  • Add an all sharable configuration with all rules enabled (#674 @pfhayes)
  • Add no-find-dom-node rule (#678)
  • Add shorthandFirst option to jsx-sort-props (#391 @mathieumg)
  • Add allowDecorators option to require-optimization (#669 @Tom910)

Fixed

  • Fix jsx-no-bind reporting errors on render functions that don't return JSX (#663 @petersendidit)
  • Fix jsx-closing-bracket-location autofix when location is set to props-aligned (#684 @pfhayes)
  • Fix prop-types for destructured arguments being assigned to the parent stateless component in some cases (#698)
  • Fix prop-types for JSX return being assigned to the parent function in some cases (#504)
  • Fix jsx-curly-spacing for reporting on JSX content by mistake (#671)

Breaking

  • Remove deprecated jsx-sort-prop-types rule, use sort-prop-types instead (#549 @lencioni)
  • Rename jsx-no-comment-textnodes to no-comment-textnodes. jsx-no-comment-textnodes still works but will trigger a warning (#668 @lencioni)
  • Rename jsx-require-extension to require-extension. jsx-require-extension still works but will trigger a warning (#668 @lencioni)
  • Rename jsx-wrap-multilines to wrap-multilines. jsx-wrap-multilines still works but will trigger a warning (#668 @lencioni)

Changed

  • Update dependencies
  • Only report jsx-filename-extension warning once per file (#660 @mathieumg)

v6.0.0-alpha.1

08 Jul 13:08
Compare
Choose a tag to compare
v6.0.0-alpha.1 Pre-release
Pre-release

Fixed

  • Fix prop-types crash when accessing constructor on props (#654)
  • Fix jsx-filename-extension to not check filenames on text input (#662 @ljharb)
  • Fix no-comment-textnodes incorrectly catching urls (#664 @petersendidit)

Breaking

Changed

  • Update dependencies
  • Update Travis CI and AppVeyor CI configurations (@ljharb)

v5.2.2

17 Jun 20:13
Compare
Choose a tag to compare

Fixed

  • Fix jsx-no-bind crash (#641)

v5.2.1

16 Jun 23:49
Compare
Choose a tag to compare

Fixed

  • Fix jsx-pascal-case for namespaced components (#637 @evcohen)