Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v6.10.0
Added
- Add
forbid-foreign-prop-types
rule (#696 @iancmyers) - Add
void-dom-elements-no-children
rule (#709 @lencioni) - Add
forbid-elements
rule (#887 @kentor) - Add
noSortAlphabetically
option tojsx-sort-props
(#541 #786 @markus101) - Add
when
option tojsx-max-props-per-line
(#878 @kentor) - Add support for
nextProps
toprop-types
(#814)
Fixed
- Fix
require-default-props
crash (#1029) - Fix
require-default-props
rule when using Flow type from assignment (#1043 @wyze @carlrosell) - Fix
style-prop-object
to not warn with explicitnull
orundefined
(#812 @ljharb) - Fix
no-unused-prop-types
props detection in stateless components (#885 @BarryThePenguin) - Fix
display-name
false positive withdocument.createElement
(#996 @jomasti) - Fix ESLint 2 compatibility (@ljharb)
Changed
v6.9.0
v6.8.0
Added
- Add
no-array-index-key
rule (#978 @lencioni) - Add
require-default-props
rule (#528 @vitorbal) - Add support for flow variance syntax to
prop-types
(#961 @ajhyndman)
Fixed
- Fix
jsx-indent
with multiline jsx in ternaries (#966) - Fix component detection to ignore async functions (#989 @taion)
- Fix
jsx-curly-spacing
autofix to not delete comments (#648) - FIx auto-enabling of
eslint-plugin-react
in exported configurations (#984 @jamischarles)
Changed
- Update dependencies
- Documentation improvements (#960 @evilebottnawi, #973 @JamesWatling, #982 @captbaritone)
v6.7.1
v6.7.0
Added
- Add
jsx-tag-spacing
rule (#693 @Kovensky)
Fixed
- Fix
jsx-indent
for parenthesized ternaries (#945 @voxpelli) - Fix
jsx-indent
for multiline ternaries - Fix
jsx-indent
for arrays in jsx (#947) - Fix
no-danger-with-children
crash with spread on global variables (#921) - Fix
jsx-wrap-multilines
ternaries handling (#916)
Changed
- Enable
no-unused-prop-types
skipShapeProps
option by default to limit false positive (#953 @everdimension)
v6.6.0
Added
- Add
jsx-first-prop-new-line
auto fix (#886 @snowypowers)
Fixed
- Fix
no-unused-prop-types
crash with destructured prop-types (#938) - Fix
jsx-indent
in multi-line conditional expressions (#901, #907) - Fix
sort-comp
bad error message if 2 methods in the same group must be moved (#507)
Changed
- Documentation improvements (#941 @pwmckenna)
v6.5.0
Added
- Add tab support to
jsx-closing-bracket-location
auto fixer (#909 @arperry) - Add tab and space support to
jsx-indent
auto fixer (#608 @jayphelps) - Add
multiline-multiprop
option tojsx-first-prop-new-line
(#883 @kentor)
Fixed
- Fix
forbid-component-props
crash with self reference JSX element (#839 @xeodou) - Fix
jsx-indent
to ignore lines starting by literals (#900) - Fix
no-set-state
to correctly detectsetState
in arrow functions (#931)
Changed
v6.4.1
v6.4.0
Added
Fixed
- Fix
jsx-no-bind
crash on arrow functions (#854) - Fix
display-name
false negative on es6-style method inReact.createClass
(#852) - Fix
prefer-stateless-function
to allow components withchildContextTypes
(#853) - Fix
no-children-prop
spread support (#862 @randycoulman) - Fix
no-unused-prop-types
to ignore validation when spread is used (#840) - Fix
jsx-closing-bracket-location
for multi-line prop (#889) - Fix
jsx-indent
in multi-line function calls (#895) - Fix
jsx-indent
in multi-line logical expressions (#540)
Changed
- Update dependencies
- Documentation improvements (#860 @fson, #863 @corydolphin, #830 @eelyafi, #876 @manovotny, #877 @gaearon)
v6.3.0
Added
- Add
no-children-prop
rule (#720 @benstepp) - Add
no-unescaped-entities
rule (#681 @pfhayes) - Add JSXExpressionContainer support to
jsx-indent
rule (#838 @eelyafi)
Fixed
- Fix
style-prop-object
crash (#834) - Fix
style-prop-object
false positive on computed properties (#820) - Fix
style-prop-object
to deal with null and spread props that can't be resolved (#809 #812 @petersendidit)