Update eslint-plugin-react to version 7.0.0 🚀 #163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello lovely humans,
eslint-plugin-react just published its new version 7.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
no-will-update-set-staterule (#1139 @ManThursday)no-deprecatedreservedFirstoption tojsx-sort-props(#1134 @MatthewHerbst)Breaking
React.PropTypesandReact.createClassinno-deprecated(#1148 @Calyhre)createClasscomponent factory tocreateReactClass. This is used for React component detection, if you still usingReact.createClassuse the shared settings to specifycreateClassas component factoryno-danger-with-childrenrule to recommended rules (#748 @ljharb)no-string-refsrule to recommended rules (#749 @ljharb)jsx-keyrule to recommended rules (#750 @ljharb)jsx-no-comment-textnodesrule to recommended rules (#751 @ljharb)jsx-no-target-blankrule to recommended rules (#752 @ljharb)no-unescaped-entitiesrule to recommended rules (#841 @ljharb)no-children-proprule to recommended rules (#842 @ljharb)wrap-multilinesrule, usejsx-wrap-multilinesinsteadno-comment-textnodesrule, usejsx-no-comment-textnodesinsteadrequire-extensionrule, use the eslint-plugin-importextensionsrule insteadjsx-space-before-closingrule, use thejsx-tag-spacingrule instead.jsx-space-before-closingstill works but will trigger a warning (#1070 @afairb)jsx-first-prop-new-linedefault is nowmultiline-multiprop(#802 @kokarn)jsx-wrap-multilinesnow checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undefwill not check the global scope by default. You can force it with theallowGlobalsoption (#1013 @jomasti)Fixed
no-unused-prop-typesfalse positive withnextProps(#1079 @Kerumen)prefer-stateless-functionto not warn on classes with decorators (#1034 @benstepp)Changed
The new version differs by 447 commits .
d335b1fUpdate CHANGELOG and bump versiond97e5f0Merge pull request #1167 from Slumber86/master79415f1Wrong import48a397eFix syntax error2cd9e5eUpdate docs for deprecated prop-types4d5faeeUpdate CHANGELOG and bump versiondfe190bMerge pull request #1134 from MatthewHerbst/jsx-sort-props/new-rule-option--reservedFirst14dbf99Merge pull request #802 from kokarn/master7d08955Add default for jsx-first-prop-new-line21ed801Fix lint errorsb5856caMerge pull request #791 from Lingvokot/790-stateless-multiline-wrap77048c8Remove deprecated wrap-multilines rule6d6d24aRemove deprecated no-comment-textnodes rule229cc21Remove deprecated require-extension ruleed928c2Merge pull request #1013 from jomasti/jsx-no-undef-imported-onlyThere are 250 commits in total. See the full diff.