Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v6.2.2
v6.2.1
v6.2.0
Added
- Adds
no-unused-prop-typesrule (#226 @EvNaverniouk) - Add
style-prop-objectrule (#715 @petersendidit) - Add auto fix for
self-closing-comp(#770 @pl12133) - Add support for
typeAnnotationsinsort-comp(#235 @dozoisch) - Add support for
PureComponentinprefer-stateless-function(#781 @tiemevanveen)
Fixed
- Fix
jsx-uses-varsto work better withprefer-const. You'll need to upgrade to ESLint 3.4.0 to completely fix the compatibility issue (#716) - Fix
require-render-returncrash (#784) - Fix related components detection in
prop-types(#735) - Fix component detection to ignore functions expression without a parent component
Changed
- Update dependencies
- Documentation improvements (@lencioni)
v6.1.2
v6.1.1
v6.1.0
Added
- Add
React.PureComponentsupport (#737) - Add
forbid-component-propsrule (#314 @lencioni) - Add
no-danger-with-childrenrule (#710 @petersendidit) - Add pragma for
createClassfactory method (#725 @zurawiki)
Fixed
- Fix Node.js 0.10 support (#746)
- Fix
prop-typeson annotated components (#729) - Fix
require-optimizationtest for function declaration (#744 @Tom910) - Fix
jsx-uses-varto handle nested object properties (#761 @yayalice) - Fix rules metadata
Changed
v6.0.0
Added
- Add an
allsharable configuration with all rules enabled (#674 @pfhayes) - Add
no-find-dom-noderule (#678) - Add
shorthandFirstoption tojsx-sort-props(#391 @mathieumg) - Add
allowDecoratorsoption torequire-optimization(#669 @Tom910)
Breaking
- Deprecate
require-extensionrule, use the eslint-plugin-importextensionsrule instead.require-extensionstill works but will trigger a warning - Enable
allow-in-funcmode by default inno-did-mount-set-stateandno-did-update-set-staterules (#702 @lencioni) - Enable html tags check by default in
self-closing-comp - Remove
pragmaoption fromjsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni) - Remove
reactoption fromno-deprecatedrule, use the shared settings to specify the React version (#700 @lencioni) - Add
require-render-returnrule to recommended rules - Remove
no-dangerfrom recommended rules (#636 @mjackson) - Remove
no-did-mount-set-stateandno-did-update-set-statefrom recommended rules (#596) - Remove deprecated
jsx-sort-prop-typesrule, usesort-prop-typesinstead (#549 @lencioni) - Rename
no-comment-textnodestojsx-no-comment-textnodes.no-comment-textnodesstill works but will trigger a warning (#668 @lencioni) - Rename
wrap-multilinestojsx-wrap-multilines.wrap-multilinesstill 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-namesincorrectly flaggingonly(#571 @lencioni) - Fix spread props cash in
jsx-no-target-blank(#679 @randycoulman) - Fix
require-optimizationwarning on stateless components (#687) - Fix
jsx-uses-varsthat incorrectly marked some variables as used (#694 @lencioni) - Fix
no-unknown-propertycheck on SVG attributes (#718) - Fix
jsx-no-bindreporting errors on render functions that don't return JSX (#663 @petersendidit) - Fix
jsx-closing-bracket-locationautofix whenlocationis set toprops-aligned(#684 @pfhayes) - Fix
prop-typesfor destructured arguments being assigned to the parent stateless component in some cases (#698) - Fix
prop-typesfor JSX return being assigned to the parent function in some cases (#504) - Fix
jsx-curly-spacingfor reporting on JSX content by mistake (#671) - Fix
prop-typescrash when accessing constructor on props (#654) - Fix
jsx-filename-extensionto not check filenames on text input (#662 @ljharb) - Fix
jsx-no-comment-textnodesincorrectly catching urls (#664 @petersendidit)
Changed
- Only report
jsx-filename-extensionwarning 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-namesincorrectly flaggingonly(#571 @lencioni) - Fix
wrap-multilinesrule (#728 @akozhemiakin)
v6.0.0-rc.0
Fixed
- Fix spread props crash in
jsx-no-target-blank(#679 @randycoulman) - Fix
require-optimizationwarning on stateless components (#687) - Fix
jsx-uses-varsthat incorrectly marked some variables as used (#694 @lencioni) - Fix
no-unknown-propertycheck on SVG attributes (#718) - Fix
allconfig to not include deprecated rules (#723 @pfhayes)
Breaking
- Deprecate
require-extension rule, use the eslint-plugin-importextensionsrule instead - Enable
allow-in-funcmode by default inno-did-mount-set-stateandno-did-update-set-staterules (#702 @lencioni) - Enable html tags check by default in
self-closing-comp - Remove
pragmaoption fromjsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni) - Remove
reactoption fromno-deprecatedrule, use the shared settings to specify the React version (#700 @lencioni) - Remove
no-dangerfrom recommended rules (#636 @mjackson) - Remove
no-did-mount-set-stateand no-did-update-set-state from recommended rules (#596) - Add
require-render-returnrule 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
allsharable configuration with all rules enabled (#674 @pfhayes) - Add
no-find-dom-noderule (#678) - Add
shorthandFirstoption tojsx-sort-props(#391 @mathieumg) - Add
allowDecoratorsoption torequire-optimization(#669 @Tom910)
Fixed
- Fix
jsx-no-bindreporting errors on render functions that don't return JSX (#663 @petersendidit) - Fix
jsx-closing-bracket-locationautofix whenlocationis set toprops-aligned(#684 @pfhayes) - Fix
prop-typesfor destructured arguments being assigned to the parent stateless component in some cases (#698) - Fix
prop-typesfor JSX return being assigned to the parent function in some cases (#504) - Fix
jsx-curly-spacingfor reporting on JSX content by mistake (#671)
Breaking
- Remove deprecated
jsx-sort-prop-typesrule, usesort-prop-typesinstead (#549 @lencioni) - Rename
jsx-no-comment-textnodestono-comment-textnodes.jsx-no-comment-textnodesstill works but will trigger a warning (#668 @lencioni) - Rename
jsx-require-extensiontorequire-extension.jsx-require-extensionstill works but will trigger a warning (#668 @lencioni) - Rename
jsx-wrap-multilinestowrap-multilines.jsx-wrap-multilinesstill works but will trigger a warning (#668 @lencioni)
Changed
- Update dependencies
- Only report
jsx-filename-extensionwarning once per file (#660 @mathieumg)