Skip to content

Commit 91d7251

Browse files
lluiscabfacebook-github-bot
authored andcommittedMar 18, 2024·
eslint: Update @typescript-eslint monorepo to v7 & eslint-plugin-jest to v27 (#43406)
Summary: This PR updates `typescript-eslint/eslint-plugin` and `typescript-eslint/parser` to `v7` and `eslint-plugin-jest` to `v27`, removing any dependencies on `typescript-eslint` `v6`, allowing projects using `react-native/eslint-config` to safely update to `typescript-eslint` `v7` without having to worry about duplicate major versions installed ## Changelog: - [General] [Changed]: Updated `eslint-plugin-jest` to `v27` - [General] [Changed]: Updated `typescript-eslint` monorepo to `v7` Pull Request resolved: #43406 Test Plan: `yarn run lint` executed locally successfully Reviewed By: robhogan Differential Revision: D54749676 Pulled By: tdn120 fbshipit-source-id: f6fae92fc95333e28b36a3d2bd8470c8869d38bc
1 parent ef77087 commit 91d7251

File tree

3 files changed

+67
-59
lines changed

3 files changed

+67
-59
lines changed
 

Diff for: ‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@react-native/metro-config": "0.75.0-main",
6464
"@tsconfig/node18": "1.0.1",
6565
"@types/react": "^18.0.18",
66-
"@typescript-eslint/parser": "^6.7.4",
66+
"@typescript-eslint/parser": "^7.1.1",
6767
"ansi-styles": "^4.2.1",
6868
"async": "^3.2.2",
6969
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
@@ -78,7 +78,7 @@
7878
"eslint-plugin-babel": "^5.3.1",
7979
"eslint-plugin-eslint-comments": "^3.2.0",
8080
"eslint-plugin-ft-flow": "^2.0.1",
81-
"eslint-plugin-jest": "^26.5.3",
81+
"eslint-plugin-jest": "^27.9.0",
8282
"eslint-plugin-jsx-a11y": "^6.6.0",
8383
"eslint-plugin-lint": "^1.0.0",
8484
"eslint-plugin-prettier": "^4.2.1",

Diff for: ‎packages/eslint-config-react-native/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"@babel/core": "^7.20.0",
2424
"@babel/eslint-parser": "^7.20.0",
2525
"@react-native/eslint-plugin": "0.75.0-main",
26-
"@typescript-eslint/eslint-plugin": "^6.7.4",
27-
"@typescript-eslint/parser": "^6.7.4",
26+
"@typescript-eslint/eslint-plugin": "^7.1.1",
27+
"@typescript-eslint/parser": "^7.1.1",
2828
"eslint-config-prettier": "^8.5.0",
2929
"eslint-plugin-eslint-comments": "^3.2.0",
3030
"eslint-plugin-ft-flow": "^2.0.1",
31-
"eslint-plugin-jest": "^26.5.3",
31+
"eslint-plugin-jest": "^27.9.0",
3232
"eslint-plugin-prettier": "^4.2.1",
3333
"eslint-plugin-react": "^7.30.1",
3434
"eslint-plugin-react-hooks": "^4.6.0",

Diff for: ‎yarn.lock

+62-54
Original file line numberDiff line numberDiff line change
@@ -2874,16 +2874,16 @@
28742874
semver "^7.3.7"
28752875
tsutils "^3.21.0"
28762876

2877-
"@typescript-eslint/eslint-plugin@^6.7.4":
2878-
version "6.7.4"
2879-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.4.tgz#057338df21b6062c2f2fc5999fbea8af9973ac6d"
2880-
integrity sha512-DAbgDXwtX+pDkAHwiGhqP3zWUGpW49B7eqmgpPtg+BKJXwdct79ut9+ifqOFPJGClGKSHXn2PTBatCnldJRUoA==
2877+
"@typescript-eslint/eslint-plugin@^7.1.1":
2878+
version "7.1.1"
2879+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.1.1.tgz#dd71fc5c7ecec745ca26ece506d84d203a205c0e"
2880+
integrity sha512-zioDz623d0RHNhvx0eesUmGfIjzrk18nSBC8xewepKXbBvN/7c1qImV7Hg8TI1URTxKax7/zxfxj3Uph8Chcuw==
28812881
dependencies:
28822882
"@eslint-community/regexpp" "^4.5.1"
2883-
"@typescript-eslint/scope-manager" "6.7.4"
2884-
"@typescript-eslint/type-utils" "6.7.4"
2885-
"@typescript-eslint/utils" "6.7.4"
2886-
"@typescript-eslint/visitor-keys" "6.7.4"
2883+
"@typescript-eslint/scope-manager" "7.1.1"
2884+
"@typescript-eslint/type-utils" "7.1.1"
2885+
"@typescript-eslint/utils" "7.1.1"
2886+
"@typescript-eslint/visitor-keys" "7.1.1"
28872887
debug "^4.3.4"
28882888
graphemer "^1.4.0"
28892889
ignore "^5.2.4"
@@ -2901,15 +2901,15 @@
29012901
"@typescript-eslint/typescript-estree" "5.59.5"
29022902
debug "^4.3.4"
29032903

2904-
"@typescript-eslint/parser@^6.7.4":
2905-
version "6.7.4"
2906-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.4.tgz#23d1dd4fe5d295c7fa2ab651f5406cd9ad0bd435"
2907-
integrity sha512-I5zVZFY+cw4IMZUeNCU7Sh2PO5O57F7Lr0uyhgCJmhN/BuTlnc55KxPonR4+EM3GBdfiCyGZye6DgMjtubQkmA==
2904+
"@typescript-eslint/parser@^7.1.1":
2905+
version "7.1.1"
2906+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.1.1.tgz#6a9d0a5c9ccdf5dbd3cb8c949728c64e24e07d1f"
2907+
integrity sha512-ZWUFyL0z04R1nAEgr9e79YtV5LbafdOtN7yapNbn1ansMyaegl2D4bL7vHoJ4HPSc4CaLwuCVas8CVuneKzplQ==
29082908
dependencies:
2909-
"@typescript-eslint/scope-manager" "6.7.4"
2910-
"@typescript-eslint/types" "6.7.4"
2911-
"@typescript-eslint/typescript-estree" "6.7.4"
2912-
"@typescript-eslint/visitor-keys" "6.7.4"
2909+
"@typescript-eslint/scope-manager" "7.1.1"
2910+
"@typescript-eslint/types" "7.1.1"
2911+
"@typescript-eslint/typescript-estree" "7.1.1"
2912+
"@typescript-eslint/visitor-keys" "7.1.1"
29132913
debug "^4.3.4"
29142914

29152915
"@typescript-eslint/scope-manager@5.59.5":
@@ -2920,13 +2920,13 @@
29202920
"@typescript-eslint/types" "5.59.5"
29212921
"@typescript-eslint/visitor-keys" "5.59.5"
29222922

2923-
"@typescript-eslint/scope-manager@6.7.4":
2924-
version "6.7.4"
2925-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.4.tgz#a484a17aa219e96044db40813429eb7214d7b386"
2926-
integrity sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==
2923+
"@typescript-eslint/scope-manager@7.1.1":
2924+
version "7.1.1"
2925+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.1.1.tgz#9e301803ff8e21a74f50c6f89a4baccad9a48f93"
2926+
integrity sha512-cirZpA8bJMRb4WZ+rO6+mnOJrGFDd38WoXCEI57+CYBqta8Yc8aJym2i7vyqLL1vVYljgw0X27axkUXz32T8TA==
29272927
dependencies:
2928-
"@typescript-eslint/types" "6.7.4"
2929-
"@typescript-eslint/visitor-keys" "6.7.4"
2928+
"@typescript-eslint/types" "7.1.1"
2929+
"@typescript-eslint/visitor-keys" "7.1.1"
29302930

29312931
"@typescript-eslint/type-utils@5.59.5":
29322932
version "5.59.5"
@@ -2938,13 +2938,13 @@
29382938
debug "^4.3.4"
29392939
tsutils "^3.21.0"
29402940

2941-
"@typescript-eslint/type-utils@6.7.4":
2942-
version "6.7.4"
2943-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.7.4.tgz#847cd3b59baf948984499be3e0a12ff07373e321"
2944-
integrity sha512-n+g3zi1QzpcAdHFP9KQF+rEFxMb2KxtnJGID3teA/nxKHOVi3ylKovaqEzGBbVY2pBttU6z85gp0D00ufLzViQ==
2941+
"@typescript-eslint/type-utils@7.1.1":
2942+
version "7.1.1"
2943+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.1.1.tgz#aee820d5bedd39b83c18585a526cc520ddb7a226"
2944+
integrity sha512-5r4RKze6XHEEhlZnJtR3GYeCh1IueUHdbrukV2KSlLXaTjuSfeVF8mZUVPLovidCuZfbVjfhi4c0DNSa/Rdg5g==
29452945
dependencies:
2946-
"@typescript-eslint/typescript-estree" "6.7.4"
2947-
"@typescript-eslint/utils" "6.7.4"
2946+
"@typescript-eslint/typescript-estree" "7.1.1"
2947+
"@typescript-eslint/utils" "7.1.1"
29482948
debug "^4.3.4"
29492949
ts-api-utils "^1.0.1"
29502950

@@ -2958,10 +2958,10 @@
29582958
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
29592959
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==
29602960

2961-
"@typescript-eslint/types@6.7.4":
2962-
version "6.7.4"
2963-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.4.tgz#5d358484d2be986980c039de68e9f1eb62ea7897"
2964-
integrity sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==
2961+
"@typescript-eslint/types@7.1.1":
2962+
version "7.1.1"
2963+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.1.1.tgz#ca33ba7cf58224fb46a84fea62593c2c53cd795f"
2964+
integrity sha512-KhewzrlRMrgeKm1U9bh2z5aoL4s7K3tK5DwHDn8MHv0yQfWFz/0ZR6trrIHHa5CsF83j/GgHqzdbzCXJ3crx0Q==
29652965

29662966
"@typescript-eslint/typescript-estree@5.59.5":
29672967
version "5.59.5"
@@ -2976,16 +2976,17 @@
29762976
semver "^7.3.7"
29772977
tsutils "^3.21.0"
29782978

2979-
"@typescript-eslint/typescript-estree@6.7.4":
2980-
version "6.7.4"
2981-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.4.tgz#f2baece09f7bb1df9296e32638b2e1130014ef1a"
2982-
integrity sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==
2979+
"@typescript-eslint/typescript-estree@7.1.1":
2980+
version "7.1.1"
2981+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.1.1.tgz#09c54af0151a1b05d0875c0fc7fe2ec7a2476ece"
2982+
integrity sha512-9ZOncVSfr+sMXVxxca2OJOPagRwT0u/UHikM2Rd6L/aB+kL/QAuTnsv6MeXtjzCJYb8PzrXarypSGIPx3Jemxw==
29832983
dependencies:
2984-
"@typescript-eslint/types" "6.7.4"
2985-
"@typescript-eslint/visitor-keys" "6.7.4"
2984+
"@typescript-eslint/types" "7.1.1"
2985+
"@typescript-eslint/visitor-keys" "7.1.1"
29862986
debug "^4.3.4"
29872987
globby "^11.1.0"
29882988
is-glob "^4.0.3"
2989+
minimatch "9.0.3"
29892990
semver "^7.5.4"
29902991
ts-api-utils "^1.0.1"
29912992

@@ -3003,17 +3004,17 @@
30033004
eslint-scope "^5.1.1"
30043005
semver "^7.3.7"
30053006

3006-
"@typescript-eslint/utils@6.7.4":
3007-
version "6.7.4"
3008-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.4.tgz#2236f72b10e38277ee05ef06142522e1de470ff2"
3009-
integrity sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==
3007+
"@typescript-eslint/utils@7.1.1":
3008+
version "7.1.1"
3009+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.1.1.tgz#bdeeb789eee4af5d3fb5400a69566d4dbf97ff3b"
3010+
integrity sha512-thOXM89xA03xAE0lW7alstvnyoBUbBX38YtY+zAUcpRPcq9EIhXPuJ0YTv948MbzmKh6e1AUszn5cBFK49Umqg==
30103011
dependencies:
30113012
"@eslint-community/eslint-utils" "^4.4.0"
30123013
"@types/json-schema" "^7.0.12"
30133014
"@types/semver" "^7.5.0"
3014-
"@typescript-eslint/scope-manager" "6.7.4"
3015-
"@typescript-eslint/types" "6.7.4"
3016-
"@typescript-eslint/typescript-estree" "6.7.4"
3015+
"@typescript-eslint/scope-manager" "7.1.1"
3016+
"@typescript-eslint/types" "7.1.1"
3017+
"@typescript-eslint/typescript-estree" "7.1.1"
30173018
semver "^7.5.4"
30183019

30193020
"@typescript-eslint/visitor-keys@5.59.5":
@@ -3024,12 +3025,12 @@
30243025
"@typescript-eslint/types" "5.59.5"
30253026
eslint-visitor-keys "^3.3.0"
30263027

3027-
"@typescript-eslint/visitor-keys@6.7.4":
3028-
version "6.7.4"
3029-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.4.tgz#80dfecf820fc67574012375859085f91a4dff043"
3030-
integrity sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==
3028+
"@typescript-eslint/visitor-keys@7.1.1":
3029+
version "7.1.1"
3030+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.1.1.tgz#e6538a58c9b157f03bcbb29e3b6a92fe39a6ab0d"
3031+
integrity sha512-yTdHDQxY7cSoCcAtiBzVzxleJhkGB9NncSIyMYe2+OGON1ZsP9zOPws/Pqgopa65jvknOjlk/w7ulPlZ78PiLQ==
30313032
dependencies:
3032-
"@typescript-eslint/types" "6.7.4"
3033+
"@typescript-eslint/types" "7.1.1"
30333034
eslint-visitor-keys "^3.4.1"
30343035

30353036
"@typescript-eslint/visitor-keys@^5.42.0":
@@ -4608,10 +4609,10 @@ eslint-plugin-ft-flow@^2.0.1:
46084609
lodash "^4.17.21"
46094610
string-natural-compare "^3.0.1"
46104611

4611-
eslint-plugin-jest@^26.5.3:
4612-
version "26.5.3"
4613-
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.5.3.tgz#a3ceeaf4a757878342b8b00eca92379b246e5505"
4614-
integrity sha512-sICclUqJQnR1bFRZGLN2jnSVsYOsmPYYnroGCIMVSvTS3y8XR3yjzy1EcTQmk6typ5pRgyIWzbjqxK6cZHEZuQ==
4612+
eslint-plugin-jest@^27.9.0:
4613+
version "27.9.0"
4614+
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz#7c98a33605e1d8b8442ace092b60e9919730000b"
4615+
integrity sha512-QIT7FH7fNmd9n4se7FFKHbsLKGQiw885Ds6Y/sxKgCZ6natwCsXdgPOADnYVxN2QrRweF0FZWbJ6S7Rsn7llug==
46154616
dependencies:
46164617
"@typescript-eslint/utils" "^5.10.0"
46174618

@@ -7284,6 +7285,13 @@ mimic-response@^3.1.0:
72847285
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9"
72857286
integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==
72867287

7288+
minimatch@9.0.3:
7289+
version "9.0.3"
7290+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825"
7291+
integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==
7292+
dependencies:
7293+
brace-expansion "^2.0.1"
7294+
72877295
minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
72887296
version "3.1.2"
72897297
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"

0 commit comments

Comments
 (0)
Please sign in to comment.