Update eslint-plugin-react to the latest version 🚀 #6
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.
Version 7.0.0 of eslint-plugin-react just got published.
The version 7.0.0 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.
Release Notes
v7.0.0Added
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
Commits
The new version differs by 58 commits0.
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 58 commits in total.
See the full diff
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴