Added
- Add an
all
sharable configuration with all rules enabled (#674 @pfhayes) - Add
no-find-dom-node
rule (#678) - Add
shorthandFirst
option tojsx-sort-props
(#391 @mathieumg) - Add
allowDecorators
option torequire-optimization
(#669 @Tom910)
Fixed
- Fix
jsx-no-bind
reporting errors on render functions that don't return JSX (#663 @petersendidit) - Fix
jsx-closing-bracket-location
autofix whenlocation
is set toprops-aligned
(#684 @pfhayes) - Fix
prop-types
for destructured arguments being assigned to the parent stateless component in some cases (#698) - Fix
prop-types
for JSX return being assigned to the parent function in some cases (#504) - Fix
jsx-curly-spacing
for reporting on JSX content by mistake (#671)
Breaking
- Remove deprecated
jsx-sort-prop-types
rule, usesort-prop-types
instead (#549 @lencioni) - Rename
jsx-no-comment-textnodes
tono-comment-textnodes
.jsx-no-comment-textnodes
still works but will trigger a warning (#668 @lencioni) - Rename
jsx-require-extension
torequire-extension
.jsx-require-extension
still works but will trigger a warning (#668 @lencioni) - Rename
jsx-wrap-multilines
towrap-multilines
.jsx-wrap-multilines
still works but will trigger a warning (#668 @lencioni)
Changed
- Update dependencies
- Only report
jsx-filename-extension
warning once per file (#660 @mathieumg)