Skip to content

Commit 1353da5

Browse files
friederbluemlefacebook-github-bot
authored andcommitted
Update eslint-config dependencies (#27085)
Summary: A couple of minor and patch updates to the `eslint-config` package, to avoid warnings and errors with the generated code of the latest RN version templates, such as: ``` warning "react-native-community/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0". warning "react-native-community/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3.17.0 || ^4 || ^5". ``` `yarn check` outputs the following errors: ``` error "react-native-community/eslint-config#eslint-plugin-react-native#eslint@^3.17.0 || ^4 || ^5" doesn't satisfy found match of "[email protected]" error "react-native-community/eslint-config#eslint-plugin-react#eslint@^3.0.0 || ^4.0.0 || ^5.0.0" doesn't satisfy found match of "[email protected]" ``` By adding the missing `"license"` field, from now on this also avoids the following warnings: ``` warning package.json: No license field warning react-native-community/[email protected]: No license field ``` ## Changelog [General] [Fixed] - Fix eslint-config peer dependency warnings Pull Request resolved: #27085 Test Plan: - Publish current `master` package locally (`0.0.6` is [not published](https://www.npmjs.com/package/react-native-community/eslint-config) yet!) - Create new RN 0.61.3 project, set `eslint-config` to local package, observe errors/warnings running `yarn`/`yarn check` - `yarn lint` passes cleanly - Update dependencies (as in this PR), republish locally - Update RN test project to new `eslint-config` package, **observe no more errors** - `yarn lint` still passes cleanly Differential Revision: D18298733 Pulled By: cpojer fbshipit-source-id: 9a550365521fbaa4b940bc8c02cbeb345d8900b6
1 parent 5df204b commit 1353da5

File tree

2 files changed

+110
-42
lines changed

2 files changed

+110
-42
lines changed

packages/eslint-config-react-native-community/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
"version": "0.0.6",
44
"description": "ESLint config for React Native",
55
"main": "index.js",
6+
"license": "MIT",
67
"repository": {
78
"type": "git",
89
"url": "[email protected]:facebook/react-native.git"
910
},
1011
"dependencies": {
1112
"@typescript-eslint/eslint-plugin": "^1.5.0",
1213
"@typescript-eslint/parser": "^1.5.0",
13-
"babel-eslint": "10.0.1",
14+
"babel-eslint": "10.0.3",
1415
"eslint-config-prettier": "^6.0.0",
15-
"eslint-plugin-eslint-comments": "^3.1.1",
16+
"eslint-plugin-eslint-comments": "^3.1.2",
1617
"eslint-plugin-flowtype": "2.50.3",
1718
"eslint-plugin-jest": "22.4.1",
1819
"eslint-plugin-prettier": "2.6.2",
19-
"eslint-plugin-react": "7.12.4",
20+
"eslint-plugin-react": "7.16.0",
2021
"eslint-plugin-react-hooks": "^2.0.1",
21-
"eslint-plugin-react-native": "3.7.0",
22+
"eslint-plugin-react-native": "3.8.1",
2223
"prettier": "1.17.0"
2324
},
2425
"peerDependencies": {

packages/eslint-config-react-native-community/yarn.lock

+105-38
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,17 @@ astral-regex@^1.0.0:
179179
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
180180
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
181181

182-
183-
version "10.0.1"
184-
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.1.tgz#919681dc099614cd7d31d45c8908695092a1faed"
185-
integrity sha512-z7OT1iNV+TjOwHNLLyJk+HN+YVWX+CLE6fPD2SymJZOZQBs+QIexFjhm4keGTm8MW9xr4EC9Q0PbaLB24V5GoQ==
182+
183+
version "10.0.3"
184+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.0.3.tgz#81a2c669be0f205e19462fed2482d33e4687a88a"
185+
integrity sha512-z3U7eMY6r/3f3/JB9mTsLjyxrv0Yb1zb8PCWCLpguxfCzBIZUwy23R1t/XKewP+8mEN2Ck8Dtr4q20z6ce6SoA==
186186
dependencies:
187187
"@babel/code-frame" "^7.0.0"
188188
"@babel/parser" "^7.0.0"
189189
"@babel/traverse" "^7.0.0"
190190
"@babel/types" "^7.0.0"
191-
eslint-scope "3.7.1"
192191
eslint-visitor-keys "^1.0.0"
192+
resolve "^1.12.0"
193193

194194
balanced-match@^1.0.0:
195195
version "1.0.0"
@@ -275,7 +275,7 @@ deep-is@~0.1.3:
275275
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
276276
integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=
277277

278-
define-properties@^1.1.2:
278+
define-properties@^1.1.2, define-properties@^1.1.3:
279279
version "1.1.3"
280280
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
281281
integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==
@@ -313,6 +313,22 @@ es-abstract@^1.11.0, es-abstract@^1.7.0:
313313
is-regex "^1.0.4"
314314
object-keys "^1.0.12"
315315

316+
es-abstract@^1.12.0:
317+
version "1.16.0"
318+
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.16.0.tgz#d3a26dc9c3283ac9750dca569586e976d9dcc06d"
319+
integrity sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==
320+
dependencies:
321+
es-to-primitive "^1.2.0"
322+
function-bind "^1.1.1"
323+
has "^1.0.3"
324+
has-symbols "^1.0.0"
325+
is-callable "^1.1.4"
326+
is-regex "^1.0.4"
327+
object-inspect "^1.6.0"
328+
object-keys "^1.1.1"
329+
string.prototype.trimleft "^2.1.0"
330+
string.prototype.trimright "^2.1.0"
331+
316332
es-to-primitive@^1.2.0:
317333
version "1.2.0"
318334
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377"
@@ -334,10 +350,10 @@ eslint-config-prettier@^6.0.0:
334350
dependencies:
335351
get-stdin "^6.0.0"
336352

337-
eslint-plugin-eslint-comments@^3.1.1:
338-
version "3.1.1"
339-
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.1.1.tgz#32ff0afba8a48e17073817e6d03fbc5622f735b7"
340-
integrity sha512-GZDKhOFqJLKlaABX+kdoLskcTINMrVOWxGca54KcFb1QCPd0CLmqgAMRxkkUfGSmN+5NJUMGh7NGccIMcWPSfQ==
353+
eslint-plugin-eslint-comments@^3.1.2:
354+
version "3.1.2"
355+
resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.1.2.tgz#4ef6c488dbe06aa1627fea107b3e5d059fc8a395"
356+
integrity sha512-QexaqrNeteFfRTad96W+Vi4Zj1KFbkHHNMMaHZEYcovKav6gdomyGzaxSDSL3GoIyUOo078wRAdYlu1caiauIQ==
341357
dependencies:
342358
escape-string-regexp "^1.0.5"
343359
ignore "^5.0.5"
@@ -372,33 +388,27 @@ eslint-plugin-react-native-globals@^0.1.1:
372388
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2"
373389
integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==
374390

375-
eslint-plugin-react-native@3.7.0:
376-
version "3.7.0"
377-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.7.0.tgz#7e2cc1f3cf24919c4c0ea7fac13301e7444e105f"
378-
integrity sha512-krLtQmGih/uJDPxF8DBpnU8J3kRUsDm/Dey5yEhOO8LN1I3Wesbk4PGCg8Zah57azKFU+9YtGooFjJcDJWUs+g==
391+
eslint-plugin-react-native@3.8.1:
392+
version "3.8.1"
393+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.8.1.tgz#92811e37191ecb0d29c0f0a0c9e5c943ee573821"
394+
integrity sha512-6Z4s4nvgFRdda/1s1+uu4a6EMZwEjjJ9Bk/1yBImv0fd9U2CsGu2cUakAtV83cZKhizbWhSouXoaK4JtlScdFg==
379395
dependencies:
380396
eslint-plugin-react-native-globals "^0.1.1"
381397

382-
eslint-plugin-react@7.12.4:
383-
version "7.12.4"
384-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c"
385-
integrity sha512-1puHJkXJY+oS1t467MjbqjvX53uQ05HXwjqDgdbGBqf5j9eeydI54G3KwiJmWciQ0HTBacIKw2jgwSBSH3yfgQ==
398+
eslint-plugin-react@7.16.0:
399+
version "7.16.0"
400+
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.16.0.tgz#9928e4f3e2122ed3ba6a5b56d0303ba3e41d8c09"
401+
integrity sha512-GacBAATewhhptbK3/vTP09CbFrgUJmBSaaRcWdbQLFvUZy9yVcQxigBNHGPU/KE2AyHpzj3AWXpxoMTsIDiHug==
386402
dependencies:
387403
array-includes "^3.0.3"
388404
doctrine "^2.1.0"
389405
has "^1.0.3"
390-
jsx-ast-utils "^2.0.1"
406+
jsx-ast-utils "^2.2.1"
407+
object.entries "^1.1.0"
391408
object.fromentries "^2.0.0"
392-
prop-types "^15.6.2"
393-
resolve "^1.9.0"
394-
395-
396-
version "3.7.1"
397-
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
398-
integrity sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=
399-
dependencies:
400-
esrecurse "^4.1.0"
401-
estraverse "^4.1.1"
409+
object.values "^1.1.0"
410+
prop-types "^15.7.2"
411+
resolve "^1.12.0"
402412

403413
eslint-scope@^4.0.0, eslint-scope@^4.0.3:
404414
version "4.0.3"
@@ -743,12 +753,13 @@ json-stable-stringify-without-jsonify@^1.0.1:
743753
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
744754
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
745755

746-
jsx-ast-utils@^2.0.1:
747-
version "2.0.1"
748-
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f"
749-
integrity sha1-6AGxs5mF4g//yHtA43SAgOLcrH8=
756+
jsx-ast-utils@^2.2.1:
757+
version "2.2.3"
758+
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz#8a9364e402448a3ce7f14d357738310d9248054f"
759+
integrity sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==
750760
dependencies:
751761
array-includes "^3.0.3"
762+
object.assign "^4.1.0"
752763

753764
levn@^0.3.0, levn@~0.3.0:
754765
version "0.3.0"
@@ -824,11 +835,41 @@ object-assign@^4.1.1:
824835
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
825836
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
826837

838+
object-inspect@^1.6.0:
839+
version "1.6.0"
840+
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b"
841+
integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==
842+
843+
object-keys@^1.0.11, object-keys@^1.1.1:
844+
version "1.1.1"
845+
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
846+
integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
847+
827848
object-keys@^1.0.12:
828849
version "1.1.0"
829850
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
830851
integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==
831852

853+
object.assign@^4.1.0:
854+
version "4.1.0"
855+
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da"
856+
integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==
857+
dependencies:
858+
define-properties "^1.1.2"
859+
function-bind "^1.1.1"
860+
has-symbols "^1.0.0"
861+
object-keys "^1.0.11"
862+
863+
object.entries@^1.1.0:
864+
version "1.1.0"
865+
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.0.tgz#2024fc6d6ba246aee38bdb0ffd5cfbcf371b7519"
866+
integrity sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==
867+
dependencies:
868+
define-properties "^1.1.3"
869+
es-abstract "^1.12.0"
870+
function-bind "^1.1.1"
871+
has "^1.0.3"
872+
832873
object.fromentries@^2.0.0:
833874
version "2.0.0"
834875
resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.0.tgz#49a543d92151f8277b3ac9600f1e930b189d30ab"
@@ -839,6 +880,16 @@ object.fromentries@^2.0.0:
839880
function-bind "^1.1.1"
840881
has "^1.0.1"
841882

883+
object.values@^1.1.0:
884+
version "1.1.0"
885+
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.0.tgz#bf6810ef5da3e5325790eaaa2be213ea84624da9"
886+
integrity sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==
887+
dependencies:
888+
define-properties "^1.1.3"
889+
es-abstract "^1.12.0"
890+
function-bind "^1.1.1"
891+
has "^1.0.3"
892+
842893
once@^1.3.0:
843894
version "1.4.0"
844895
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
@@ -912,7 +963,7 @@ progress@^2.0.0:
912963
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
913964
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
914965

915-
prop-types@^15.6.2:
966+
prop-types@^15.7.2:
916967
version "15.7.2"
917968
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
918969
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -946,10 +997,10 @@ resolve-from@^4.0.0:
946997
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
947998
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
948999

949-
resolve@^1.9.0:
950-
version "1.10.0"
951-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba"
952-
integrity sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==
1000+
resolve@^1.12.0:
1001+
version "1.12.0"
1002+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
1003+
integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==
9531004
dependencies:
9541005
path-parse "^1.0.6"
9551006

@@ -1050,6 +1101,22 @@ string-width@^3.0.0:
10501101
is-fullwidth-code-point "^2.0.0"
10511102
strip-ansi "^5.1.0"
10521103

1104+
string.prototype.trimleft@^2.1.0:
1105+
version "2.1.0"
1106+
resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634"
1107+
integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw==
1108+
dependencies:
1109+
define-properties "^1.1.3"
1110+
function-bind "^1.1.1"
1111+
1112+
string.prototype.trimright@^2.1.0:
1113+
version "2.1.0"
1114+
resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58"
1115+
integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg==
1116+
dependencies:
1117+
define-properties "^1.1.3"
1118+
function-bind "^1.1.1"
1119+
10531120
strip-ansi@^4.0.0:
10541121
version "4.0.0"
10551122
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"

0 commit comments

Comments
 (0)