Skip to content

Releases: jsx-eslint/eslint-plugin-react

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

v3.11.1

29 Nov 18:59
Compare
Choose a tag to compare

Fixed

  • Fix SVG attributes support for no-unknown-property (#338)

v3.11.0

29 Nov 17:39
Compare
Choose a tag to compare

Added

Fixed

  • Fix destructured props detection in stateless components (#326)
  • Fix props validation for nested stateless components (#331)
  • Fix require-extension to ignore extension if it's part of the package name (#319)

Changed

  • Allow consecutive uppercase letters in jsx-pascal-case (#328 @lencioni)
  • Update dependencies

v3.10.0

20 Nov 23:21
Compare
Choose a tag to compare

Added

Fixed

v3.9.0

16 Nov 23:48
Compare
Choose a tag to compare

Added

  • Add jsx-key rule (#293 @benmosher)
  • Add allow-in-func option to no-did-update-set-state (#300)
  • Add option to only enforce jsx-closing-bracket-location rule to one type of tag (nonEmpty or selfClosing) (#307)

Fixed

  • Fix crash when destructuring with only the rest spread (#269)
  • Fix variables detection when searching for related components (#303)
  • Fix no-unknown-property to not check custom elements (#308 @zertosh)

Changed

  • Improve jsx-closing-bracket-location error message (#301 @alopatin)
  • Update dependencies

v3.8.0

07 Nov 17:20
Compare
Choose a tag to compare

Added

  • Add ignoreStateless option to no-multi-comp (#290)

Fixed

  • Fix classes with properties to always be marked as components (#291)
  • Fix ES5 class detection when using createClass by itself (#297)
  • Fix direct props detection (#298)
  • Ignore functions containing the keyword this during component detection

v3.7.1

05 Nov 02:07
Compare
Choose a tag to compare

Fixed

  • Fix sort-comp crash on stateless components (#285)
  • Fix crash in ES5 components detection (#286)
  • Fix ES5 components detection from nested functions (#287)

v3.7.0

04 Nov 23:22
Compare
Choose a tag to compare

Added

Fixed

  • Fix a lot of issues about components detection, mostly related to stateless components (#264, #267, #268, #276, #277, #280)

Changed

  • Update dependencies