Skip to content

Releases: jsx-eslint/eslint-plugin-react

v2.6.1

28 Jun 18:30
Compare
Choose a tag to compare

Fixed

  • Fix crash in prop-types when encountering an empty variable declaration (#130)

v2.6.0

28 Jun 17:32
Compare
Choose a tag to compare

Added

  • Add support for nested propTypes (#62 #105 @Cellule)
  • Add require-extension rule (#117 @scothis)
  • Add support for computed string format in prop-types (#127 @Cellule)
  • Add ES6 methods to sort-comp default configuration (#97 #122)
  • Add support for props destructuring directly on the this keyword
  • Add acceptTranspilerName option to display-name rule (#75)
  • Add schema to validate rules options

Changed

  • Update dependencies

Fixed

  • Fix test command for Windows (#114 @Cellule)
  • Fix detection of missing displayName and propTypes when ecmaFeatures.jsx is false (#119 @rpl)
  • Fix propTypes destructuring with properties as string (#118 @Cellule)
  • Fix jsx-sort-prop-types support for keys as string (#123 @Cellule)
  • Fix crash if a ClassProperty has only one token (#125)
  • Fix invalid class property handling in jsx-sort-prop-types (#129)

v2.5.2

28 Jun 17:31
Compare
Choose a tag to compare

Fixed

  • Fix regression in jsx-uses-vars with babel-eslint (#110)

v2.5.1

28 Jun 17:31
Compare
Choose a tag to compare

Changed

Fixed

  • Fix prop-types crash when propTypes definition is invalid (#95)
  • Fix jsx-uses-vars for ES6 classes (#96)
  • Fix hasOwnProperty that is taken for a prop (#102)

v2.5.0

03 Jun 23:16
Compare
Choose a tag to compare

Added

  • Add option to make wrap-multilines more granular (#94 @PiPeep)

Changed

v2.4.0

03 Jun 23:16
Compare
Choose a tag to compare

Added

Changed

Fixed

  • Fix itemID in no-unknown-property rule (#85 @cody)
  • Fix license field in package.json (#90 @zertosh)
  • Fix usage of contructor in sort-comp options (#88)

v2.3.0

14 May 18:37
Compare
Choose a tag to compare

Added

  • Add sort-comp rule (#39)
  • Add allow-in-func option to no-did-mount-set-state (#56)

Changed

  • Update dependencies
  • Improve errors locations for prop-types

Fixed

  • Fix quoted propTypes in ES6 (#77)

v2.2.0

21 Apr 22:40
Compare
Choose a tag to compare

Added

Changed

Fixed

  • Fix variables marked as used when a prop has the same name (#69 @burnnat)

v2.1.1

16 Apr 23:41
Compare
Choose a tag to compare

Added

  • Add support for classes static properties (#43)
  • Add tests for the babel-eslint parser
  • Add ESLint as peerDependency (#63 @AlexKVal)

Changed

v2.1.0

06 Apr 21:25
Compare
Choose a tag to compare

Added

  • Add jsx-boolean-value rule (#11)
  • Add support for static methods in display-name and prop-types (#48)

Changed

  • Update jsx-sort-props to reset the alphabetical verification on spread (#47 @zertosh)
  • Update jsx-uses-vars to be enabled by default (#49 @banderson)

Fixed

  • Fix describing comment for hasSpreadOperator() method (#53 @AlexKVal)