Skip to content

v6.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@yannickcr yannickcr released this 23 Jul 22:22
· 2695 commits to master since this 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)