Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v7.2.1
Fixed
- Fix
forbid-prop-typescrash on identifiers (#1352 @ljharb) - Fix
boolean-prop-namingcrash with propTypes wrapper (#1354 @dustinsoftware) - Fix
prop-typesfalse positive with local variableprops(#1288 @DianaSuvorova) - Fix wrapped propTypes detection (#1366)
Changed
v7.2.0
Added
- Add
no-unused-staterule (#1103 @wbinnssmith) - Add
boolean-prop-namingrule (#1264 @EvHaus) - Add
no-typosrule (#1189 @jseminck, #1294 @haridusenadeera) - Add auto fix for
sort-props(#1273 @Overload119) - Add
gettersandsettersgroups tosort-comp(#100 @RDGthree) - Add
noStringsoption tono-literals(#1202 @deecewan) - Add inverse option for
always/nevertojsx-boolean-value(#1249 @ljharb)
Fixed
- Fix
no-direct-mutation-stateto disallowthis.statemutation in constructor (#832 @burabure) - Fix
jsx-no-target-blankcrash on emptyrelattribute (#1269 @dustinsoftware) - Fix
sort-compcomponent detection withClassExpression(#1076 @webOS101) - Fix
no-unused-prop-typesdetection with async class properties and methods (#1053 @benstepp) - Fix
void-dom-elements-no-childrencrash (#1226 @kokobeware) - Fix
no-danger-with-childrento ignore line breaks (#1262) - Fix
no-danger-with-childrencrash with undefined (#1287) - Fix
jsx-no-target-blankcrash (#1296 @jseminck) - Fix
no-unused-propsto no longer ignore components with no used props (#1303 @DianaSuvorova) - Fix
jsx-no-duplicate-propscrash (#969 @marcelmokos) - Fix
no-literalsfalse positives (#1301 @davidyorr) - Fix
no-find-dom-nodedetection with named imports (#785 @Hypnosphi) - Fix proTypes-related rules detection with wrapped propTypes (#1266 @dustinsoftware)
- Fix
no-unused-prop-typesdetection with propTypes wrapped in a function (#1253 @dustinsoftware) - Fix
no-unused-prop-typesdetection with destructured use of properties (#816 @DianaSuvorova) - Fix
no-unused-prop-typesdetection with inline functions (#1309 @DianaSuvorova) - Fix
no-unused-prop-typesskipShapePropsoption with Flow annotations (#1335 @DianaSuvorova) - Fix
jsx-curly-spacingschema incompatibility with ESLint 4.2.0 (#1290 @jseminck)
Changed
v7.1.0
Added
- Add
default-props-match-prop-typesrule (#1022 @webOS101) - Add
no-redundant-should-component-updaterule (#985 @jomasti) - Add
jsx-closing-tag-locationrule (#1206 @rsolomon) - Add auto fix for
jsx-max-props-per-line(#949 @snowypowers) - Add support for lifecycle methods with
nextProps/prevPropsinno-unused-prop-types(#1213 @jseminck) - Add Flow SuperTypeParameters support to
prop-types(#1236 @gpeal) - Add
childrenoption tojsx-curly-spacing(#857 @fatfisz)
Fixed
- Fix
prefer-stateless-functionignorePureComponentsoption when using class expressions (#1122 @dreid) - Fix
void-dom-elements-no-childrencrash (#1195 @oliviertassinari) - Fix
require-default-propsquoteddefaultPropsdetection (#1201) - Fix
jsx-sort-propsbug withignoreCaseandcallbacksLastoptions set totrue(#1175 @jseminck) - Fix
no-unused-proptypefalse positive (#1183 #1135 @jseminck) - Fix
jsx-no-target-blankto not issue errors for non-external URLs (#1216 @gfx) - Fix
prop-typesquoted Flow types detection (#1132 @ethanjgoldberg) - Fix
no-array-index-keycrash withkeywithout value (#1242 @jseminck)
Changed
v7.0.1
Fixed
- Fix
jsx-curly-spacingallowMultilineoption being undefined in some cases (#1179 @fatfisz) - Fix
jsx-curly-spacingnewline with object literals bug (#1180 @fatfisz) - Fix
prop-typesto not mark class static function as valid propTypes definition (#1174) - Fix
prop-typescrash with Flow spread operator (#1178) - Fix
void-dom-elements-no-childrencrash on faultycreateElementdetection (#1101) - Fix
require-default-propserror message for quoted props (#1161)
Changed
- Update dependencies
- Documentation improvements (#1173 @luftywiranda13, #1192 @markus-willems)
v7.0.0
Added
- Add
no-will-update-set-staterule (#1139 @ManThursday) - Add import and destructuring support to
no-deprecated - Add
reservedFirstoption tojsx-sort-props(#1134 @MatthewHerbst)
Breaking
- Update rules for React 15.5.0:
- Add warnings for
React.PropTypesandReact.createClassinno-deprecated(#1148 @Calyhre) - Update
createClasscomponent factory tocreateReactClass. This is used for React component detection, if you still usingReact.createClassuse the shared settings to specifycreateClassas component factory
- Add warnings for
- Drop Node.js < 4 support (#1038 @ljharb)
- Add
no-danger-with-childrenrule to recommended rules (#748 @ljharb) - Add
no-string-refsrule to recommended rules (#749 @ljharb) - Add
jsx-keyrule to recommended rules (#750 @ljharb) - Add
jsx-no-comment-textnodesrule to recommended rules (#751 @ljharb) - Add
jsx-no-target-blankrule to recommended rules (#752 @ljharb) - Add
no-unescaped-entitiesrule to recommended rules (#841 @ljharb) - Add
no-children-proprule to recommended rules (#842 @ljharb) - Remove deprecated
wrap-multilinesrule, usejsx-wrap-multilinesinstead - Remove deprecated
no-comment-textnodesrule, usejsx-no-comment-textnodesinstead - Remove deprecated
require-extensionrule, use the eslint-plugin-importextensionsrule instead - Deprecate
jsx-space-before-closingrule, use thejsx-tag-spacingrule instead.jsx-space-before-closingstill works but will trigger a warning (#1070 @afairb) jsx-first-prop-new-linedefault is nowmultiline-multiprop(#802 @kokarn)jsx-wrap-multilinesnow checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undefwill not check the global scope by default. You can force it with theallowGlobalsoption (#1013 @jomasti)
Fixed
- Fix
no-unused-prop-typesfalse positive withnextProps(#1079 @Kerumen) - Fix
prefer-stateless-functionto not warn on classes with decorators (#1034 @benstepp)
Changed
- Update dependencies (#1119 @danez)
- Documentation improvements (#1121 @omerzach, #1130 @dreid, #1131 @shoesandsocks, #1149 @Adzz, #1151 @MatthewHerbst, #1167 @Slumber86)
v7.0.0-rc.1
Added
- Add
reservedFirstoption tojsx-sort-props(#1134 @MatthewHerbst)
Breaking
- Drop Node.js < 4 support (#1038 @ljharb)
- Add
no-danger-with-childrenrule to recommended rules (#748 @ljharb) - Add
no-string-refsrule to recommended rules (#749 @ljharb) - Add
jsx-keyrule to recommended rules (#750 @ljharb) - Add
jsx-no-comment-textnodesrule to recommended rules (#751 @ljharb) - Add
jsx-no-target-blankrule to recommended rules (#752 @ljharb) - Add
no-unescaped-entitiesrule to recommended rules (#841 @ljharb) - Add
no-children-proprule to recommended rules (#842 @ljharb) - Remove deprecated
wrap-multilinesrule, usejsx-wrap-multilinesinstead - Remove deprecated
no-comment-textnodesrule, usejsx-no-comment-textnodesinstead - Remove deprecated
require-extensionrule, use the eslint-plugin-importextensionsrule instead - Deprecate
jsx-space-before-closingrule, use thejsx-tag-spacingrule instead.jsx-space-before-closingstill works but will trigger a warning (#1070 @afairb) jsx-first-prop-new-linedefault is nowmultiline-multiprop(#802 @kokarn)jsx-wrap-multilinesnow checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undefwill not check the global scope by default. You can force it with theallowGlobalsoption (#1013 @jomasti)
v7.0.0-rc.0
Added
- Add
no-will-update-set-staterule (#1139 @ManThursday) - Add import and destructuring support to
no-deprecated
Breaking
- Update rules for React 15.5.0:
- Add warnings for
React.PropTypesandReact.createClassinno-deprecated(#1148 @Calyhre) - Update
createClasscomponent factory tocreateReactClass. This is used for React component detection, if you still usingReact.createClassuse the shared settings to specifycreateClassas component factory
- Add warnings for
Fixed
- Fix
no-unused-prop-typesfalse positive withnextProps(#1079 @Kerumen) - Fix
prefer-stateless-functionto not warn on classes with decorators (#1034 @benstepp)
Changed
v6.10.3
v6.10.2
v6.10.1
Fixed
- Fix
jsx-indentauto fix with tabs (#1057 @kentcdodds @webOS101) - Fix
jsx-indentcrash (#1061 @iancmyers) - Fix
void-dom-elements-no-childrencrash and fix it to only checks for a createElement call from
React (#1073 @jomasti) - Fix component detection that caused a false positive in
no-multi-comp(#1088 @benstepp)