Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v7.2.1
Fixed
- Fix
forbid-prop-types
crash on identifiers (#1352 @ljharb) - Fix
boolean-prop-naming
crash with propTypes wrapper (#1354 @dustinsoftware) - Fix
prop-types
false positive with local variableprops
(#1288 @DianaSuvorova) - Fix wrapped propTypes detection (#1366)
Changed
v7.2.0
Added
- Add
no-unused-state
rule (#1103 @wbinnssmith) - Add
boolean-prop-naming
rule (#1264 @EvHaus) - Add
no-typos
rule (#1189 @jseminck, #1294 @haridusenadeera) - Add auto fix for
sort-props
(#1273 @Overload119) - Add
getters
andsetters
groups tosort-comp
(#100 @RDGthree) - Add
noStrings
option tono-literals
(#1202 @deecewan) - Add inverse option for
always
/never
tojsx-boolean-value
(#1249 @ljharb)
Fixed
- Fix
no-direct-mutation-state
to disallowthis.state
mutation in constructor (#832 @burabure) - Fix
jsx-no-target-blank
crash on emptyrel
attribute (#1269 @dustinsoftware) - Fix
sort-comp
component detection withClassExpression
(#1076 @webOS101) - Fix
no-unused-prop-types
detection with async class properties and methods (#1053 @benstepp) - Fix
void-dom-elements-no-children
crash (#1226 @kokobeware) - Fix
no-danger-with-children
to ignore line breaks (#1262) - Fix
no-danger-with-children
crash with undefined (#1287) - Fix
jsx-no-target-blank
crash (#1296 @jseminck) - Fix
no-unused-props
to no longer ignore components with no used props (#1303 @DianaSuvorova) - Fix
jsx-no-duplicate-props
crash (#969 @marcelmokos) - Fix
no-literals
false positives (#1301 @davidyorr) - Fix
no-find-dom-node
detection with named imports (#785 @Hypnosphi) - Fix proTypes-related rules detection with wrapped propTypes (#1266 @dustinsoftware)
- Fix
no-unused-prop-types
detection with propTypes wrapped in a function (#1253 @dustinsoftware) - Fix
no-unused-prop-types
detection with destructured use of properties (#816 @DianaSuvorova) - Fix
no-unused-prop-types
detection with inline functions (#1309 @DianaSuvorova) - Fix
no-unused-prop-types
skipShapeProps
option with Flow annotations (#1335 @DianaSuvorova) - Fix
jsx-curly-spacing
schema incompatibility with ESLint 4.2.0 (#1290 @jseminck)
Changed
v7.1.0
Added
- Add
default-props-match-prop-types
rule (#1022 @webOS101) - Add
no-redundant-should-component-update
rule (#985 @jomasti) - Add
jsx-closing-tag-location
rule (#1206 @rsolomon) - Add auto fix for
jsx-max-props-per-line
(#949 @snowypowers) - Add support for lifecycle methods with
nextProps
/prevProps
inno-unused-prop-types
(#1213 @jseminck) - Add Flow SuperTypeParameters support to
prop-types
(#1236 @gpeal) - Add
children
option tojsx-curly-spacing
(#857 @fatfisz)
Fixed
- Fix
prefer-stateless-function
ignorePureComponents
option when using class expressions (#1122 @dreid) - Fix
void-dom-elements-no-children
crash (#1195 @oliviertassinari) - Fix
require-default-props
quoteddefaultProps
detection (#1201) - Fix
jsx-sort-props
bug withignoreCase
andcallbacksLast
options set totrue
(#1175 @jseminck) - Fix
no-unused-proptype
false positive (#1183 #1135 @jseminck) - Fix
jsx-no-target-blank
to not issue errors for non-external URLs (#1216 @gfx) - Fix
prop-types
quoted Flow types detection (#1132 @ethanjgoldberg) - Fix
no-array-index-key
crash withkey
without value (#1242 @jseminck)
Changed
v7.0.1
Fixed
- Fix
jsx-curly-spacing
allowMultiline
option being undefined in some cases (#1179 @fatfisz) - Fix
jsx-curly-spacing
newline with object literals bug (#1180 @fatfisz) - Fix
prop-types
to not mark class static function as valid propTypes definition (#1174) - Fix
prop-types
crash with Flow spread operator (#1178) - Fix
void-dom-elements-no-children
crash on faultycreateElement
detection (#1101) - Fix
require-default-props
error message for quoted props (#1161)
Changed
- Update dependencies
- Documentation improvements (#1173 @luftywiranda13, #1192 @markus-willems)
v7.0.0
Added
- Add
no-will-update-set-state
rule (#1139 @ManThursday) - Add import and destructuring support to
no-deprecated
- Add
reservedFirst
option tojsx-sort-props
(#1134 @MatthewHerbst)
Breaking
- Update rules for React 15.5.0:
- Add warnings for
React.PropTypes
andReact.createClass
inno-deprecated
(#1148 @Calyhre) - Update
createClass
component factory tocreateReactClass
. This is used for React component detection, if you still usingReact.createClass
use the shared settings to specifycreateClass
as component factory
- Add warnings for
- Drop Node.js < 4 support (#1038 @ljharb)
- Add
no-danger-with-children
rule to recommended rules (#748 @ljharb) - Add
no-string-refs
rule to recommended rules (#749 @ljharb) - Add
jsx-key
rule to recommended rules (#750 @ljharb) - Add
jsx-no-comment-textnodes
rule to recommended rules (#751 @ljharb) - Add
jsx-no-target-blank
rule to recommended rules (#752 @ljharb) - Add
no-unescaped-entities
rule to recommended rules (#841 @ljharb) - Add
no-children-prop
rule to recommended rules (#842 @ljharb) - Remove deprecated
wrap-multilines
rule, usejsx-wrap-multilines
instead - Remove deprecated
no-comment-textnodes
rule, usejsx-no-comment-textnodes
instead - Remove deprecated
require-extension
rule, use the eslint-plugin-importextensions
rule instead - Deprecate
jsx-space-before-closing
rule, use thejsx-tag-spacing
rule instead.jsx-space-before-closing
still works but will trigger a warning (#1070 @afairb) jsx-first-prop-new-line
default is nowmultiline-multiprop
(#802 @kokarn)jsx-wrap-multilines
now checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undef
will not check the global scope by default. You can force it with theallowGlobals
option (#1013 @jomasti)
Fixed
- Fix
no-unused-prop-types
false positive withnextProps
(#1079 @Kerumen) - Fix
prefer-stateless-function
to 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
reservedFirst
option tojsx-sort-props
(#1134 @MatthewHerbst)
Breaking
- Drop Node.js < 4 support (#1038 @ljharb)
- Add
no-danger-with-children
rule to recommended rules (#748 @ljharb) - Add
no-string-refs
rule to recommended rules (#749 @ljharb) - Add
jsx-key
rule to recommended rules (#750 @ljharb) - Add
jsx-no-comment-textnodes
rule to recommended rules (#751 @ljharb) - Add
jsx-no-target-blank
rule to recommended rules (#752 @ljharb) - Add
no-unescaped-entities
rule to recommended rules (#841 @ljharb) - Add
no-children-prop
rule to recommended rules (#842 @ljharb) - Remove deprecated
wrap-multilines
rule, usejsx-wrap-multilines
instead - Remove deprecated
no-comment-textnodes
rule, usejsx-no-comment-textnodes
instead - Remove deprecated
require-extension
rule, use the eslint-plugin-importextensions
rule instead - Deprecate
jsx-space-before-closing
rule, use thejsx-tag-spacing
rule instead.jsx-space-before-closing
still works but will trigger a warning (#1070 @afairb) jsx-first-prop-new-line
default is nowmultiline-multiprop
(#802 @kokarn)jsx-wrap-multilines
now checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undef
will not check the global scope by default. You can force it with theallowGlobals
option (#1013 @jomasti)
v7.0.0-rc.0
Added
- Add
no-will-update-set-state
rule (#1139 @ManThursday) - Add import and destructuring support to
no-deprecated
Breaking
- Update rules for React 15.5.0:
- Add warnings for
React.PropTypes
andReact.createClass
inno-deprecated
(#1148 @Calyhre) - Update
createClass
component factory tocreateReactClass
. This is used for React component detection, if you still usingReact.createClass
use the shared settings to specifycreateClass
as component factory
- Add warnings for
Fixed
- Fix
no-unused-prop-types
false positive withnextProps
(#1079 @Kerumen) - Fix
prefer-stateless-function
to not warn on classes with decorators (#1034 @benstepp)
Changed
v6.10.3
v6.10.2
v6.10.1
Fixed
- Fix
jsx-indent
auto fix with tabs (#1057 @kentcdodds @webOS101) - Fix
jsx-indent
crash (#1061 @iancmyers) - Fix
void-dom-elements-no-children
crash 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)