Update eslint-plugin-react to the latest version 🚀 #97
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.4.0 of eslint-plugin-react just got published.
The version 7.4.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.4.0Added
jsx-curly-brace-presence
rule (#1310 @jackyho112)prop-types
andno-unused-prop-types
(#1364 #1323 @jseminck)no-unused-prop-types
(#1412 @jseminck)prop-types
(#1400 @jseminck)no-unused-prop-types
(#1388 @jseminck)prop-types
andno-unused-prop-types
(#1381 @DianaSuvorova)no-direct-mutation-state
(#1386 @zpao)Fixed
no-unused-state
to ignore computed property keys (#1361 @jackyho112)no-typos
crash (#1406 @jseminck)boolean-prop-naming
crash (#1409 @EvHaus)prop-types
andno-unused-prop-types
crash with IntersectionTypeAnnotation (#1413 @jseminck)Changed
Commits
The new version differs by 112 commits.
dc9f85e
Update CHANGELOG and bump version
99b12a2
Merge pull request #1432 from jneuendorf/master
d2005b1
fixed typos in no-multi-comp
ddd05b1
Update CHANGELOG and bump version
7e336aa
Merge pull request #1415 from jseminck/intersection-imported-type
ad26580
Merge pull request #1387 from zpao/update-expression
09c4ed7
Add tests for {...} & Props in addition to Props & {...}
357dcda
buildReactDeclarationTypes to always return an object
0ee5e93
Rewrite reduce to ignorePropsValidation as some()
3e9aefe
Make buildTypeAnnotationDeclarationTypes always return an object instead of boolean or an object
3e4d184
Aadd support also for no-unused-prop-types
19a2911
Clean up the code a bit
20f75ee
Add support for TypeA & { ... }
a771125
Add similar supprt for no-used-prop-types
87aca04
Add support for multiple Flow IntersectionTypeAnnotations and skip propTypes when one of the intersected props is not found, e.g. when imported
There are 112 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 🌴