Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v6.10.0
Added
- Add
forbid-foreign-prop-typesrule (#696 @iancmyers) - Add
void-dom-elements-no-childrenrule (#709 @lencioni) - Add
forbid-elementsrule (#887 @kentor) - Add
noSortAlphabeticallyoption tojsx-sort-props(#541 #786 @markus101) - Add
whenoption tojsx-max-props-per-line(#878 @kentor) - Add support for
nextPropstoprop-types(#814)
Fixed
- Fix
require-default-propscrash (#1029) - Fix
require-default-propsrule when using Flow type from assignment (#1043 @wyze @carlrosell) - Fix
style-prop-objectto not warn with explicitnullorundefined(#812 @ljharb) - Fix
no-unused-prop-typesprops detection in stateless components (#885 @BarryThePenguin) - Fix
display-namefalse positive withdocument.createElement(#996 @jomasti) - Fix ESLint 2 compatibility (@ljharb)
Changed
v6.9.0
v6.8.0
Added
- Add
no-array-index-keyrule (#978 @lencioni) - Add
require-default-propsrule (#528 @vitorbal) - Add support for flow variance syntax to
prop-types(#961 @ajhyndman)
Fixed
- Fix
jsx-indentwith multiline jsx in ternaries (#966) - Fix component detection to ignore async functions (#989 @taion)
- Fix
jsx-curly-spacingautofix to not delete comments (#648) - FIx auto-enabling of
eslint-plugin-reactin 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-spacingrule (#693 @Kovensky)
Fixed
- Fix
jsx-indentfor parenthesized ternaries (#945 @voxpelli) - Fix
jsx-indentfor multiline ternaries - Fix
jsx-indentfor arrays in jsx (#947) - Fix
no-danger-with-childrencrash with spread on global variables (#921) - Fix
jsx-wrap-multilinesternaries handling (#916)
Changed
- Enable
no-unused-prop-typesskipShapePropsoption by default to limit false positive (#953 @everdimension)
v6.6.0
Added
- Add
jsx-first-prop-new-lineauto fix (#886 @snowypowers)
Fixed
- Fix
no-unused-prop-typescrash with destructured prop-types (#938) - Fix
jsx-indentin multi-line conditional expressions (#901, #907) - Fix
sort-compbad 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-locationauto fixer (#909 @arperry) - Add tab and space support to
jsx-indentauto fixer (#608 @jayphelps) - Add
multiline-multipropoption tojsx-first-prop-new-line(#883 @kentor)
Fixed
- Fix
forbid-component-propscrash with self reference JSX element (#839 @xeodou) - Fix
jsx-indentto ignore lines starting by literals (#900) - Fix
no-set-stateto correctly detectsetStatein arrow functions (#931)
Changed
v6.4.1
v6.4.0
Added
Fixed
- Fix
jsx-no-bindcrash on arrow functions (#854) - Fix
display-namefalse negative on es6-style method inReact.createClass(#852) - Fix
prefer-stateless-functionto allow components withchildContextTypes(#853) - Fix
no-children-propspread support (#862 @randycoulman) - Fix
no-unused-prop-typesto ignore validation when spread is used (#840) - Fix
jsx-closing-bracket-locationfor multi-line prop (#889) - Fix
jsx-indentin multi-line function calls (#895) - Fix
jsx-indentin 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-proprule (#720 @benstepp) - Add
no-unescaped-entitiesrule (#681 @pfhayes) - Add JSXExpressionContainer support to
jsx-indentrule (#838 @eelyafi)
Fixed
- Fix
style-prop-objectcrash (#834) - Fix
style-prop-objectfalse positive on computed properties (#820) - Fix
style-prop-objectto deal with null and spread props that can't be resolved (#809 #812 @petersendidit)