Skip to content

Releases: jsx-eslint/eslint-plugin-react

v4.0.0-rc.0

14 Feb 18:27
Compare
Choose a tag to compare
v4.0.0-rc.0 Pre-release
Pre-release

Added

  • Add jsx-space-before-closing rule (#244 @ryym)
  • Add support for destructing in function signatures to prop-types (#354 @lencioni)

Breaking

  • Add support for static methods to sort-comp. Static methods must now be declared first, see rule documentation (#128 @lencioni)
  • Add shareable config in place of default configuration. jsx-uses-vars is not enabled by default anymore, see documentation (#192)
  • Rename jsx-sort-prop-types to sort-prop-types. jsx-sort-prop-types still works but will trigger a warning (#87 @lencioni)
  • Remove deprecated jsx-quotes rule (#433 @lencioni)
  • display-name now accept the transpiler name by default. You can use the ignoreTranspilerName option to get the old behavior, see rule documentation (#440 @lencioni)

Fixed

  • Only ignore lowercase JSXIdentifier in jsx-no-undef (#435)

Changed

v3.16.1

24 Jan 21:51
Compare
Choose a tag to compare

Fixed

  • Fix jsx-sort-prop-types issue with custom propTypes (#408 @alitaheri)

v3.16.0

24 Jan 15:17
Compare
Choose a tag to compare

Added

  • Add jsx-equals-spacing rule (#394 @ryym)
  • Add auto fix for wrap-multiline
  • Add auto fix for jsx-boolean-value
  • Add auto fix for no-unknown-property
  • Add auto fix for jsx-curly-spacing (#407 @ewendel)
  • Add requiredFirst option to jsx-sort-prop-types (#392 @chrislaskey)
  • Add ignoreRefs option to jsx-no-bind (#330 @silvenon)

Fixed

  • Ignore ref in jsx-handler-names (again) (#396)

Changed

  • Update dependencies

v3.15.0

11 Jan 23:11
Compare
Choose a tag to compare

Added

  • Add support for flow annotations to prop-types (#382 @phpnode)

Fixed

  • Fix prop-types crash when initializing class variable with an empty object (#383)
  • Fix prop-types crash when propTypes are using the spread operator (#389)

Changed

v3.14.0

04 Jan 23:48
Compare
Choose a tag to compare

Added

Fixed

Changed

  • Add AppVeyor CI to run tests on a Windows platform
  • Add sort-comp codemod to sort-comp documentation (#381 @turadg)

v3.13.1

26 Dec 00:40
Compare
Choose a tag to compare

Fixed

v3.13.0

24 Dec 08:10
Compare
Choose a tag to compare

Added

  • Add no-string-refs rule (#341 @Intellicode)
  • Add support for propTypes assigned via a variable in prop-types (#355)

Fixed

  • Fix never option in prefer-es6-class
  • Fix jsx-key false-positives (#320 @silvenon)

Changed

v3.12.0

20 Dec 17:58
Compare
Choose a tag to compare

Added

Fixed

  • Fix jsx-pascal-case to stop checking lower cased components (#329)
  • Fix crash in component detection class (#364)

Changed

v3.11.3

05 Dec 20:44
Compare
Choose a tag to compare

Fixed

  • Fix crash in prop-types when reassigning props (#345)
  • Fix jsx-handler-names for stateless components (#346)

Changed

  • Update jsx-handler-names error messages to be less specific (#348 @jakemmarsh)

v3.11.2

30 Nov 23:17
Compare
Choose a tag to compare

Fixed

  • Allow numbers in jsx-pascal-case (#339)
  • Fix jsx-handler-names crash with arrays (#340)

Changed

  • Add allow-in-func option to no-did-update-set-state documentation