[6.6] Fix: set react version to string, not semver object (#33079) (#33160)

Backports the following commits to 6.6:
 - Fix: set react version to string, not semver object  (#33079)
This commit is contained in:
Joe Fleming 2019-03-13 11:58:20 -07:00 committed by GitHub
parent fb1965fee6
commit 93d32a4120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -41,10 +41,6 @@ module.exports = {
forceNode: true,
},
},
react: {
version: '16.3',
},
},
rules: {

View file

@ -17,7 +17,7 @@ module.exports = {
settings: {
react: {
version: semver.coerce(PKG.dependencies.react),
version: semver.valid(semver.coerce(PKG.dependencies.react)),
},
},