Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v6.1.2
v6.1.1
v6.1.0
Added
- Add
React.PureComponent
support (#737) - Add
forbid-component-props
rule (#314 @lencioni) - Add
no-danger-with-children
rule (#710 @petersendidit) - Add pragma for
createClass
factory method (#725 @zurawiki)
Fixed
- Fix Node.js 0.10 support (#746)
- Fix
prop-types
on annotated components (#729) - Fix
require-optimization
test for function declaration (#744 @Tom910) - Fix
jsx-uses-var
to handle nested object properties (#761 @yayalice) - Fix rules metadata
Changed
v6.0.0
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)
Breaking
- Deprecate
require-extension
rule, use the eslint-plugin-importextensions
rule instead.require-extension
still works but will trigger a warning - Enable
allow-in-func
mode by default inno-did-mount-set-state
andno-did-update-set-state
rules (#702 @lencioni) - Enable html tags check by default in
self-closing-comp
- Remove
pragma
option fromjsx-uses-react
, use the shared settings to specify a custom pragma (#700 @lencioni) - Remove
react
option fromno-deprecated
rule, use the shared settings to specify the React version (#700 @lencioni) - Add
require-render-return
rule to recommended rules - Remove
no-danger
from recommended rules (#636 @mjackson) - Remove
no-did-mount-set-state
andno-did-update-set-state
from recommended rules (#596) - Remove deprecated
jsx-sort-prop-types
rule, usesort-prop-types
instead (#549 @lencioni) - Rename
no-comment-textnodes
tojsx-no-comment-textnodes
.no-comment-textnodes
still works but will trigger a warning (#668 @lencioni) - Rename
wrap-multilines
tojsx-wrap-multilines
.wrap-multilines
still works but will trigger a warning (#668 @lencioni) - Add ESLint as peerDependency (#657 @jokeyrhyme)
- Add Node.js 0.10 as minimum required version (#657 @jokeyrhyme)
Fixed
- Fix
jsx-handler-names
incorrectly flaggingonly
(#571 @lencioni) - Fix spread props cash in
jsx-no-target-blank
(#679 @randycoulman) - Fix
require-optimization
warning on stateless components (#687) - Fix
jsx-uses-vars
that incorrectly marked some variables as used (#694 @lencioni) - Fix
no-unknown-property
check on SVG attributes (#718) - 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) - Fix
prop-types
crash when accessing constructor on props (#654) - Fix
jsx-filename-extension
to not check filenames on text input (#662 @ljharb) - Fix
jsx-no-comment-textnodes
incorrectly catching urls (#664 @petersendidit)
Changed
- Only report
jsx-filename-extension
warning once per file (#660 @mathieumg) - Update SVG and DOM attribute list for
no-unknown-property
- Update rules to use the new ESLint rule format (#661 @petersendidit)
- Update dependencies
- Documentation improvements (#724 @lencioni)
- Update Travis CI and AppVeyor CI configurations (@ljharb)
v6.0.0-rc.1
Fixed
- Fix
jsx-handler-names
incorrectly flaggingonly
(#571 @lencioni) - Fix
wrap-multilines
rule (#728 @akozhemiakin)
v6.0.0-rc.0
Fixed
- Fix spread props crash in
jsx-no-target-blank
(#679 @randycoulman) - Fix
require-optimization
warning on stateless components (#687) - Fix
jsx-uses-vars
that incorrectly marked some variables as used (#694 @lencioni) - Fix
no-unknown-property
check on SVG attributes (#718) - Fix
all
config to not include deprecated rules (#723 @pfhayes)
Breaking
- Deprecate
require-extension rule
, use the eslint-plugin-importextensions
rule instead - Enable
allow-in-func
mode by default inno-did-mount-set-state
andno-did-update-set-state
rules (#702 @lencioni) - Enable html tags check by default in
self-closing-comp
- Remove
pragma
option fromjsx-uses-react
, use the shared settings to specify a custom pragma (#700 @lencioni) - Remove
react
option fromno-deprecated
rule, use the shared settings to specify the React version (#700 @lencioni) - Remove
no-danger
from recommended rules (#636 @mjackson) - Remove
no-did-mount-set-state
and no-did-update-set-state from recommended rules (#596) - Add
require-render-return
rule to recommended rules
Changed
- Update SVG and DOM attribute list for
no-unknown-property
- Update rules to use the new ESLint rule format (#661 @petersendidit)
- Documentation improvements (#724 @lencioni)
v6.0.0-alpha.2
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)
v6.0.0-alpha.1
Fixed
- Fix
prop-types
crash when accessing constructor on props (#654) - Fix
jsx-filename-extension
to not check filenames on text input (#662 @ljharb) - Fix
no-comment-textnodes
incorrectly catching urls (#664 @petersendidit)
Breaking
- Add ESLint as peerDependency (#657 @jokeyrhyme)
- Add Node.js 0.10 as minimum required version (#657 @jokeyrhyme)
Changed
- Update dependencies
- Update Travis CI and AppVeyor CI configurations (@ljharb)