Skip to content

Commit 693e578

Browse files
authored
[0.72] Migrate eslint-config from @react-native-community to @react-native (#11746)
\## Description This PR upgrades the dependency as it was re-named upstream. \### Type of Change - Bug fix (non-breaking change which fixes an issue) \### Why What is the motivation for this change? Add a few sentences describing the context and overall goals of the pull request's commits. Closes #11742 \### What Changed the dependencies in `@rnw-scripts/eslint-config`'s package.json. \## Screenshots N/A \## Testing Ran `yarn lint` and saw no changes.
1 parent 53414f8 commit 693e578

File tree

3 files changed

+41
-108
lines changed

3 files changed

+41
-108
lines changed

packages/@rnw-scripts/eslint-config/eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
module.exports = {
10-
extends: ['@react-native-community', 'prettier'],
10+
extends: ['@react-native', 'prettier'],
1111
rules: {
1212
'jest/no-disabled-tests': 'off',
1313
'react-native/no-inline-styles': 'off',

packages/@rnw-scripts/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@babel/core": "^7.14.0",
1313
"@babel/eslint-parser": "^7.18.2",
14-
"@react-native-community/eslint-config": "3.0.3",
14+
"@react-native/eslint-config": "^0.72.1",
1515
"eslint-config-prettier": "^8.5.0"
1616
},
1717
"devDependencies": {

yarn.lock

Lines changed: 39 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@
188188
eslint-visitor-keys "^2.1.0"
189189
semver "^6.3.0"
190190

191+
"@babel/eslint-parser@^7.20.0":
192+
version "7.22.5"
193+
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.22.5.tgz#fa032503b9e2d188e25b1b95d29e8b8431042d78"
194+
integrity sha512-C69RWYNYtrgIRE5CmTd77ZiLDXqgBipahJc/jHP3sLcAGj6AJzxNIuKNpVnICqbyK7X3pFUfEvL++rvtbQpZkQ==
195+
dependencies:
196+
"@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1"
197+
eslint-visitor-keys "^2.1.0"
198+
semver "^6.3.0"
199+
191200
"@babel/generator@^7.20.0", "@babel/generator@^7.21.3", "@babel/generator@^7.7.2":
192201
version "7.21.3"
193202
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.3.tgz#232359d0874b392df04045d72ce2fd9bb5045fce"
@@ -2153,30 +2162,6 @@
21532162
prompts "^2.4.0"
21542163
semver "^6.3.0"
21552164

2156-
"@react-native-community/[email protected]":
2157-
version "3.0.3"
2158-
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-config/-/eslint-config-3.0.3.tgz#a55233c82ae8d07ce84da868184e73ee6649963a"
2159-
integrity sha512-iP6FMPjeQyXkcZoaZQEDrDplO2qChqWdh+m2B51Xmlcv/t0EXpI+XGyNgb3fLgU3VV+XjriQ6BAm9yDfbSlbQw==
2160-
dependencies:
2161-
"@babel/core" "^7.14.0"
2162-
"@babel/eslint-parser" "^7.18.2"
2163-
"@react-native-community/eslint-plugin" "^1.1.0"
2164-
"@typescript-eslint/eslint-plugin" "^5.15.0"
2165-
"@typescript-eslint/parser" "^5.15.0"
2166-
eslint-config-prettier "^8.3.0"
2167-
eslint-plugin-eslint-comments "^3.2.0"
2168-
eslint-plugin-flowtype "^8.0.0"
2169-
eslint-plugin-jest "^25.2.4"
2170-
eslint-plugin-prettier "^4.0.0"
2171-
eslint-plugin-react "^7.26.1"
2172-
eslint-plugin-react-hooks "^4.2.0"
2173-
eslint-plugin-react-native "^3.11.0"
2174-
2175-
"@react-native-community/eslint-plugin@^1.1.0":
2176-
version "1.3.0"
2177-
resolved "https://registry.yarnpkg.com/@react-native-community/eslint-plugin/-/eslint-plugin-1.3.0.tgz#9e558170c106bbafaa1ef502bd8e6d4651012bf9"
2178-
integrity sha512-+zDZ20NUnSWghj7Ku5aFphMzuM9JulqCW+aPXT6IfIXFbb8tzYTTOSeRFOtuekJ99ibW2fUCSsjuKNlwDIbHFg==
2179-
21802165
"@react-native-picker/[email protected]":
21812166
version "2.4.10"
21822167
resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.4.10.tgz#339c7bfc6e1d9a5e934122eaaa7767dc1c5fb725"
@@ -2209,6 +2194,30 @@
22092194
jscodeshift "^0.14.0"
22102195
nullthrows "^1.1.1"
22112196

2197+
"@react-native/eslint-config@^0.72.1":
2198+
version "0.72.2"
2199+
resolved "https://registry.yarnpkg.com/@react-native/eslint-config/-/eslint-config-0.72.2.tgz#31da4cec65ad2805d4db9fdda138452821d72133"
2200+
integrity sha512-rAYuQQXzi63W7+9Pu/+23od/b/lTSzHjMFibum3sKgdG2LIyvhoMEWQ5+Chu7TqebqYy1b9SDn/KEMHvpWFtNg==
2201+
dependencies:
2202+
"@babel/core" "^7.20.0"
2203+
"@babel/eslint-parser" "^7.20.0"
2204+
"@react-native/eslint-plugin" "^0.72.0"
2205+
"@typescript-eslint/eslint-plugin" "^5.30.5"
2206+
"@typescript-eslint/parser" "^5.30.5"
2207+
eslint-config-prettier "^8.5.0"
2208+
eslint-plugin-eslint-comments "^3.2.0"
2209+
eslint-plugin-ft-flow "^2.0.1"
2210+
eslint-plugin-jest "^26.5.3"
2211+
eslint-plugin-prettier "^4.2.1"
2212+
eslint-plugin-react "^7.30.1"
2213+
eslint-plugin-react-hooks "^4.6.0"
2214+
eslint-plugin-react-native "^4.0.0"
2215+
2216+
"@react-native/eslint-plugin@^0.72.0":
2217+
version "0.72.0"
2218+
resolved "https://registry.yarnpkg.com/@react-native/eslint-plugin/-/eslint-plugin-0.72.0.tgz#7ec4c6a73dfde4bd6b4a4d3c462cfdc2637bf91d"
2219+
integrity sha512-xWQthnyKd+H22TBqeJUTFebsyWAAwzUb7EQCT8F/WMZsS1sv5UG+2cM/cU9/2HEbVZgxHYuLIi915WznjKPvlg==
2220+
22122221
"@react-native/gradle-plugin@^0.72.5":
22132222
version "0.72.6"
22142223
resolved "https://registry.yarnpkg.com/@react-native/gradle-plugin/-/gradle-plugin-0.72.6.tgz#14571c9ed8faa49189be01d406504a866069a4af"
@@ -2856,7 +2865,7 @@
28562865
dependencies:
28572866
"@types/node" "*"
28582867

2859-
"@typescript-eslint/eslint-plugin@^5.15.0", "@typescript-eslint/eslint-plugin@^5.21.0", "@typescript-eslint/eslint-plugin@^5.30.0", "@typescript-eslint/eslint-plugin@^5.30.5":
2868+
"@typescript-eslint/eslint-plugin@^5.21.0", "@typescript-eslint/eslint-plugin@^5.30.0", "@typescript-eslint/eslint-plugin@^5.30.5":
28602869
version "5.54.1"
28612870
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.1.tgz#0c5091289ce28372e38ab8d28e861d2dbe1ab29e"
28622871
integrity sha512-a2RQAkosH3d3ZIV08s3DcL/mcGc2M/UC528VkPULFxR9VnVPT8pBu0IyBAJJmVsCmhVfwQX1v6q+QGnmSe1bew==
@@ -2872,14 +2881,7 @@
28722881
semver "^7.3.7"
28732882
tsutils "^3.21.0"
28742883

2875-
"@typescript-eslint/experimental-utils@^5.0.0":
2876-
version "5.38.1"
2877-
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.38.1.tgz#d9ed618ea65b38e98cf4a84b87aaf6af928a6a1e"
2878-
integrity sha512-Zv0EcU0iu64DiVG3pRZU0QYCgANO//U1fS3oEs3eqHD1eIVVcQsFd/T01ckaNbL2H2aCqRojY2xZuMAPcOArEA==
2879-
dependencies:
2880-
"@typescript-eslint/utils" "5.38.1"
2881-
2882-
"@typescript-eslint/parser@^5.15.0", "@typescript-eslint/parser@^5.21.0", "@typescript-eslint/parser@^5.30.0", "@typescript-eslint/parser@^5.30.5":
2884+
"@typescript-eslint/parser@^5.21.0", "@typescript-eslint/parser@^5.30.0", "@typescript-eslint/parser@^5.30.5":
28832885
version "5.56.0"
28842886
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.56.0.tgz#42eafb44b639ef1dbd54a3dbe628c446ca753ea6"
28852887
integrity sha512-sn1OZmBxUsgxMmR8a8U5QM/Wl+tyqlH//jTqCg8daTAmhAk26L2PFhcqPLlYBhYUJMZJK276qLXlHN3a83o2cg==
@@ -2889,14 +2891,6 @@
28892891
"@typescript-eslint/typescript-estree" "5.56.0"
28902892
debug "^4.3.4"
28912893

2892-
"@typescript-eslint/[email protected]":
2893-
version "5.38.1"
2894-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.38.1.tgz#f87b289ef8819b47189351814ad183e8801d5764"
2895-
integrity sha512-BfRDq5RidVU3RbqApKmS7RFMtkyWMM50qWnDAkKgQiezRtLKsoyRKIvz1Ok5ilRWeD9IuHvaidaLxvGx/2eqTQ==
2896-
dependencies:
2897-
"@typescript-eslint/types" "5.38.1"
2898-
"@typescript-eslint/visitor-keys" "5.38.1"
2899-
29002894
"@typescript-eslint/[email protected]":
29012895
version "5.54.1"
29022896
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.54.1.tgz#6d864b4915741c608a58ce9912edf5a02bb58735"
@@ -2923,11 +2917,6 @@
29232917
debug "^4.3.4"
29242918
tsutils "^3.21.0"
29252919

2926-
"@typescript-eslint/[email protected]":
2927-
version "5.38.1"
2928-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.38.1.tgz#74f9d6dcb8dc7c58c51e9fbc6653ded39e2e225c"
2929-
integrity sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==
2930-
29312920
"@typescript-eslint/[email protected]":
29322921
version "5.54.1"
29332922
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.54.1.tgz#29fbac29a716d0f08c62fe5de70c9b6735de215c"
@@ -2938,19 +2927,6 @@
29382927
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.56.0.tgz#b03f0bfd6fa2afff4e67c5795930aff398cbd834"
29392928
integrity sha512-JyAzbTJcIyhuUhogmiu+t79AkdnqgPUEsxMTMc/dCZczGMJQh1MK2wgrju++yMN6AWroVAy2jxyPcPr3SWCq5w==
29402929

2941-
"@typescript-eslint/[email protected]":
2942-
version "5.38.1"
2943-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz#657d858d5d6087f96b638ee383ee1cff52605a1e"
2944-
integrity sha512-99b5e/Enoe8fKMLdSuwrfH/C0EIbpUWmeEKHmQlGZb8msY33qn1KlkFww0z26o5Omx7EVjzVDCWEfrfCDHfE7g==
2945-
dependencies:
2946-
"@typescript-eslint/types" "5.38.1"
2947-
"@typescript-eslint/visitor-keys" "5.38.1"
2948-
debug "^4.3.4"
2949-
globby "^11.1.0"
2950-
is-glob "^4.0.3"
2951-
semver "^7.3.7"
2952-
tsutils "^3.21.0"
2953-
29542930
"@typescript-eslint/[email protected]":
29552931
version "5.54.1"
29562932
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.1.tgz#df7b6ae05fd8fef724a87afa7e2f57fa4a599be1"
@@ -2977,18 +2953,6 @@
29772953
semver "^7.3.7"
29782954
tsutils "^3.21.0"
29792955

2980-
"@typescript-eslint/[email protected]":
2981-
version "5.38.1"
2982-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.38.1.tgz#e3ac37d7b33d1362bb5adf4acdbe00372fb813ef"
2983-
integrity sha512-oIuUiVxPBsndrN81oP8tXnFa/+EcZ03qLqPDfSZ5xIJVm7A9V0rlkQwwBOAGtrdN70ZKDlKv+l1BeT4eSFxwXA==
2984-
dependencies:
2985-
"@types/json-schema" "^7.0.9"
2986-
"@typescript-eslint/scope-manager" "5.38.1"
2987-
"@typescript-eslint/types" "5.38.1"
2988-
"@typescript-eslint/typescript-estree" "5.38.1"
2989-
eslint-scope "^5.1.1"
2990-
eslint-utils "^3.0.0"
2991-
29922956
"@typescript-eslint/[email protected]", "@typescript-eslint/utils@^5.10.0", "@typescript-eslint/utils@^5.30.0", "@typescript-eslint/utils@^5.47.1":
29932957
version "5.54.1"
29942958
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.54.1.tgz#7a3ee47409285387b9d4609ea7e1020d1797ec34"
@@ -3003,14 +2967,6 @@
30032967
eslint-utils "^3.0.0"
30042968
semver "^7.3.7"
30052969

3006-
"@typescript-eslint/[email protected]":
3007-
version "5.38.1"
3008-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz#508071bfc6b96d194c0afe6a65ad47029059edbc"
3009-
integrity sha512-bSHr1rRxXt54+j2n4k54p4fj8AHJ49VDWtjpImOpzQj4qjAiOpPni+V1Tyajh19Api1i844F757cur8wH3YvOA==
3010-
dependencies:
3011-
"@typescript-eslint/types" "5.38.1"
3012-
eslint-visitor-keys "^3.3.0"
3013-
30142970
"@typescript-eslint/[email protected]":
30152971
version "5.54.1"
30162972
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.1.tgz#d7a8a0f7181d6ac748f4d47b2306e0513b98bf8b"
@@ -5316,7 +5272,7 @@ escape-string-regexp@^4.0.0:
53165272
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
53175273
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
53185274

5319-
eslint-config-prettier@^8.3.0, eslint-config-prettier@^8.5.0:
5275+
eslint-config-prettier@^8.5.0:
53205276
version "8.8.0"
53215277
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348"
53225278
integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==
@@ -5336,14 +5292,6 @@ eslint-plugin-eslint-comments@^3.2.0:
53365292
escape-string-regexp "^1.0.5"
53375293
ignore "^5.0.5"
53385294

5339-
eslint-plugin-flowtype@^8.0.0:
5340-
version "8.0.3"
5341-
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz#e1557e37118f24734aa3122e7536a038d34a4912"
5342-
integrity sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==
5343-
dependencies:
5344-
lodash "^4.17.21"
5345-
string-natural-compare "^3.0.1"
5346-
53475295
eslint-plugin-ft-flow@^2.0.1:
53485296
version "2.0.3"
53495297
resolved "https://registry.yarnpkg.com/eslint-plugin-ft-flow/-/eslint-plugin-ft-flow-2.0.3.tgz#3b3c113c41902bcbacf0e22b536debcfc3c819e8"
@@ -5352,13 +5300,6 @@ eslint-plugin-ft-flow@^2.0.1:
53525300
lodash "^4.17.21"
53535301
string-natural-compare "^3.0.1"
53545302

5355-
eslint-plugin-jest@^25.2.4:
5356-
version "25.7.0"
5357-
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz#ff4ac97520b53a96187bad9c9814e7d00de09a6a"
5358-
integrity sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==
5359-
dependencies:
5360-
"@typescript-eslint/experimental-utils" "^5.0.0"
5361-
53625303
eslint-plugin-jest@^26.5.3:
53635304
version "26.9.0"
53645305
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.9.0.tgz#7931c31000b1c19e57dbfb71bbf71b817d1bf949"
@@ -5393,14 +5334,14 @@ eslint-plugin-lint@^1.0.0:
53935334
resolved "https://registry.yarnpkg.com/eslint-plugin-lint/-/eslint-plugin-lint-1.0.0.tgz#bfc98ad0d1b5ea437b0072ec735c459df4d084b5"
53945335
integrity sha512-hYl6F/lYLjycZmHYnpTk3dlliNxjy9breG/9URhdQmPZibmENjM378EPKvSdIDBOV+Zw/Z0d3EaJhLTjcWTovA==
53955336

5396-
eslint-plugin-prettier@^4.0.0, eslint-plugin-prettier@^4.2.1:
5337+
eslint-plugin-prettier@^4.2.1:
53975338
version "4.2.1"
53985339
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b"
53995340
integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==
54005341
dependencies:
54015342
prettier-linter-helpers "^1.0.0"
54025343

5403-
eslint-plugin-react-hooks@^4.2.0, eslint-plugin-react-hooks@^4.6.0:
5344+
eslint-plugin-react-hooks@^4.6.0:
54045345
version "4.6.0"
54055346
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
54065347
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
@@ -5410,14 +5351,6 @@ eslint-plugin-react-native-globals@^0.1.1:
54105351
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-globals/-/eslint-plugin-react-native-globals-0.1.2.tgz#ee1348bc2ceb912303ce6bdbd22e2f045ea86ea2"
54115352
integrity sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==
54125353

5413-
eslint-plugin-react-native@^3.11.0:
5414-
version "3.11.0"
5415-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-3.11.0.tgz#c73b0886abb397867e5e6689d3a6a418682e6bac"
5416-
integrity sha512-7F3OTwrtQPfPFd+VygqKA2VZ0f2fz0M4gJmry/TRE18JBb94/OtMxwbL7Oqwu7FGyrdeIOWnXQbBAveMcSTZIA==
5417-
dependencies:
5418-
"@babel/traverse" "^7.7.4"
5419-
eslint-plugin-react-native-globals "^0.1.1"
5420-
54215354
eslint-plugin-react-native@^4.0.0:
54225355
version "4.0.0"
54235356
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-4.0.0.tgz#eec41984abe4970bdd7c6082dff7a98a5e34d0bb"
@@ -5426,7 +5359,7 @@ eslint-plugin-react-native@^4.0.0:
54265359
"@babel/traverse" "^7.7.4"
54275360
eslint-plugin-react-native-globals "^0.1.1"
54285361

5429-
eslint-plugin-react@^7.26.1, eslint-plugin-react@^7.30.1:
5362+
eslint-plugin-react@^7.30.1:
54305363
version "7.32.2"
54315364
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz#e71f21c7c265ebce01bcbc9d0955170c55571f10"
54325365
integrity sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==

0 commit comments

Comments
 (0)