Hello lovely humans,
eslint-plugin-react just published its new version 6.0.0.
|
State
|
Update 🚀
|
|
Dependency
|
eslint-plugin-react
|
|
New version
|
6.0.0
|
|
Type
|
devDependency
|
This version is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of eslint-plugin-react.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Do you have any ideas how I could improve these pull requests? Did I report anything you think isn’t right?
Are you unsure about how things are supposed to work?
There is a collection of frequently asked questions and while I’m just a bot, there is a group of people who are happy to teach me new things. Let them know.
Good luck with your project ✨
You rock!
🌴
GitHub Release
Added
- Add an
all sharable configuration with all rules enabled (#674 @pfhayes)
- Add
no-find-dom-node rule (#678)
- Add
shorthandFirst option to jsx-sort-props (#391 @mathieumg)
- Add
allowDecorators option to require-optimization (#669 @Tom910)
Breaking
- Deprecate
require-extension rule, use the eslint-plugin-import extensions rule instead. require-extension still works but will trigger a warning
- Enable
allow-in-func mode by default in no-did-mount-set-state and no-did-update-set-state rules (#702 @lencioni)
- Enable html tags check by default in
self-closing-comp
- Remove
pragma option from jsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni)
- Remove
react option from no-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 and no-did-update-set-state from recommended rules (#596)
- Remove deprecated
jsx-sort-prop-types rule, use sort-prop-types instead (#549 @lencioni)
- Rename
no-comment-textnodes to jsx-no-comment-textnodes. no-comment-textnodes still works but will trigger a warning (#668 @lencioni)
- Rename
wrap-multilines to jsx-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 flagging only (#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 when location is set to props-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)
The new version differs by 59 commits .
9abc070 Update CHANGELOG and bump version
906c96d Update CHANGELOG and bump version
d19d0d5 Revert "Completing cleanup of no-comment-textnodes rule."
99f5eac Fix wrap-multilines rule
1a1dcdb Prevent jsx-handler-names from incorrectly flagging only
2f7a462 Completing cleanup of no-comment-textnodes rule.
bf35995 Update CHANGELOG and bump version
19ece14 Update dependencies
4c94f32 Update self-closing-comp to check html tags by default
e84af68 Add require-render-return rule to recommended configuration
936c42a Deprecate require-extension rule
21f684a Add rules metadata docs
a566536 Update SVG and DOM attribute list for no-unknown-property
34c8a10 Fix no-unknown-property check on SVG attributes (fixes #718)
095968c Don't include deprecated rules in all config
There are 59 commits in total. See the full diff.
This pull request was created by greenkeeper.io.
Tired of seeing this sponsor message? ⚡ greenkeeper upgrade
Hello lovely humans,
eslint-plugin-react just published its new version 6.0.0.
This version is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of eslint-plugin-react.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Do you have any ideas how I could improve these pull requests? Did I report anything you think isn’t right?
Are you unsure about how things are supposed to work?
There is a collection of frequently asked questions and while I’m just a bot, there is a group of people who are happy to teach me new things. Let them know.
Good luck with your project ✨
You rock!
🌴
GitHub Release
Added
allsharable configuration with all rules enabled (#674 @pfhayes)no-find-dom-noderule (#678)shorthandFirstoption tojsx-sort-props(#391 @mathieumg)allowDecoratorsoption torequire-optimization(#669 @Tom910)Breaking
require-extensionrule, use the eslint-plugin-importextensionsrule instead.require-extensionstill works but will trigger a warningallow-in-funcmode by default inno-did-mount-set-stateandno-did-update-set-staterules (#702 @lencioni)self-closing-comppragmaoption fromjsx-uses-react, use the shared settings to specify a custom pragma (#700 @lencioni)reactoption fromno-deprecatedrule, use the shared settings to specify the React version (#700 @lencioni)require-render-returnrule to recommended rulesno-dangerfrom recommended rules (#636 @mjackson)no-did-mount-set-stateandno-did-update-set-statefrom recommended rules (#596)jsx-sort-prop-typesrule, usesort-prop-typesinstead (#549 @lencioni)no-comment-textnodestojsx-no-comment-textnodes.no-comment-textnodesstill works but will trigger a warning (#668 @lencioni)wrap-multilinestojsx-wrap-multilines.wrap-multilinesstill works but will trigger a warning (#668 @lencioni)Fixed
jsx-handler-namesincorrectly flaggingonly(#571 @lencioni)jsx-no-target-blank(#679 @randycoulman)require-optimizationwarning on stateless components (#687)jsx-uses-varsthat incorrectly marked some variables as used (#694 @lencioni)no-unknown-propertycheck on SVG attributes (#718)jsx-no-bindreporting errors on render functions that don't return JSX (#663 @petersendidit)jsx-closing-bracket-locationautofix whenlocationis set toprops-aligned(#684 @pfhayes)prop-typesfor destructured arguments being assigned to the parent stateless component in some cases (#698)prop-typesfor JSX return being assigned to the parent function in some cases (#504)jsx-curly-spacingfor reporting on JSX content by mistake (#671)prop-typescrash when accessing constructor on props (#654)jsx-filename-extensionto not check filenames on text input (#662 @ljharb)jsx-no-comment-textnodesincorrectly catching urls (#664 @petersendidit)Changed
jsx-filename-extensionwarning once per file (#660 @mathieumg)no-unknown-propertyThe new version differs by 59 commits .
9abc070Update CHANGELOG and bump version906c96dUpdate CHANGELOG and bump versiond19d0d5Revert "Completing cleanup ofno-comment-textnodesrule."99f5eacFix wrap-multilines rule1a1dcdbPrevent jsx-handler-names from incorrectly flaggingonly2f7a462Completing cleanup ofno-comment-textnodesrule.bf35995Update CHANGELOG and bump version19ece14Update dependencies4c94f32Update self-closing-comp to check html tags by defaulte84af68Add require-render-return rule to recommended configuration936c42aDeprecate require-extension rule21f684aAdd rules metadata docsa566536Update SVG and DOM attribute list for no-unknown-property34c8a10Fix no-unknown-property check on SVG attributes (fixes #718)095968cDon't include deprecated rules inallconfigThere are 59 commits in total. See the full diff.
This pull request was created by greenkeeper.io.
Tired of seeing this sponsor message? ⚡
greenkeeper upgrade