Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v3.8.0
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
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
Added
Fixed
- Fix a lot of issues about components detection, mostly related to stateless components (#264, #267, #268, #276, #277, #280)
Changed
v3.6.3
Fixed
- Fix
display-name
for stateless components (#256)
- Fix
prop-types
props validation in constructor (#259)
- Fix typo in README (#261 @chiedojohn)
v3.6.2
Fixed
- Fix wrong prop-types detection (#255)
v3.6.1
Fixed
- Fix props validation in constructor (#254)
v3.6.0
Added
- Add support for stateless function components to
display-name
and prop-types
(#237)
- Add callbacksLast option to
jsx-sort-props
and jsx-sort-prop-types
(#242 @Daniel15)
- Add
prefer-es6-class
rule (#247 @hamiltondanielb)
Fixed
- Fix
forbid-prop-types
crash with destructured PropTypes (#230 @epmatsw)
- Fix
forbid-prop-types
to do not modify AST directly (#249 @rhysd)
- Fix
prop-types
crash with empty destructuring (#251)
- Fix
prop-types
to not validate computed keys in destructuring (#236)
Changed
- Update dependencies
- Improve components detection (#233)
- Documentation improvements (#248 @dguo)
v3.5.1
Fixed
- Fix
no-direct-mutation-state
to report only in React components (#229)
- Fix
forbid-prop-types
for arrayOf and instanceOf (#230)
Changed
v3.5.0
Added
Fixed
- Fix no-did-mount/update-set-state rules for ES6 classes
Changed
v3.4.2
Fixed
- Only display the
jsx-quotes
deprecation warning with the default formatter (#221)