Skip to content

Commit 56c712a

Browse files
PhilzenTobbe
andauthored
Update to @typescript-eslint version that supports TypeScript 5.6.2 (#11878)
Co-authored-by: Tobbe Lundberg <[email protected]>
1 parent ba4f622 commit 56c712a

File tree

7 files changed

+101
-95
lines changed

7 files changed

+101
-95
lines changed

.changesets/11878.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Update to @typescript-eslint version that supports TypeScript 5.6.2 (#11878) by @Philzen
2+
3+
Fix TS version warning when running `yarn rw lint`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
"@types/jscodeshift": "0.12.0",
8787
"@types/ncp": "2.0.8",
8888
"@types/prompts": "2.4.9",
89-
"@typescript-eslint/eslint-plugin": "8.5.0",
90-
"@typescript-eslint/parser": "8.5.0",
89+
"@typescript-eslint/eslint-plugin": "8.19.1",
90+
"@typescript-eslint/parser": "8.19.1",
9191
"@yarnpkg/types": "4.0.0",
9292
"all-contributors-cli": "6.26.1",
9393
"babel-jest": "^29.7.0",

packages/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@redwoodjs/eslint-plugin": "workspace:*",
2020
"@redwoodjs/internal": "workspace:*",
2121
"@redwoodjs/project-config": "workspace:*",
22-
"@typescript-eslint/eslint-plugin": "8.5.0",
23-
"@typescript-eslint/parser": "8.5.0",
22+
"@typescript-eslint/eslint-plugin": "8.19.1",
23+
"@typescript-eslint/parser": "8.19.1",
2424
"eslint": "8.57.1",
2525
"eslint-config-prettier": "9.1.0",
2626
"eslint-import-resolver-babel-module": "5.3.2",

packages/eslint-plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"test:watch": "vitest watch"
2323
},
2424
"dependencies": {
25-
"@typescript-eslint/utils": "8.5.0",
25+
"@typescript-eslint/utils": "8.19.1",
2626
"eslint": "8.57.1"
2727
},
2828
"devDependencies": {
2929
"@redwoodjs/framework-tools": "workspace:*",
3030
"@types/eslint": "8.56.12",
3131
"@types/estree": "1.0.6",
32-
"@typescript-eslint/parser": "8.5.0",
33-
"@typescript-eslint/rule-tester": "8.5.0",
32+
"@typescript-eslint/parser": "8.19.1",
33+
"@typescript-eslint/rule-tester": "8.19.1",
3434
"tsx": "4.19.2",
3535
"typescript": "5.6.2",
3636
"vitest": "2.0.5"

packages/storage/src/createSavers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const createUploadSavers = <MNames extends ModelNames = ModelNames>(
6464

6565
savers[saverKey] = async (data, overrideSaveOptions) => {
6666
const updatedFields = {} as Record<string, string>
67-
for await (const field of currentModelUploadFields) {
67+
for (const field of currentModelUploadFields) {
6868
if (data[field]) {
6969
const file = data[field]
7070

packages/storage/src/prismaExtension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const createUploadsExtension = <MNames extends ModelNames = ModelNames>(
101101
const createDatas = args.data as []
102102

103103
// If the create fails, we need to delete the uploaded files
104-
for await (const createData of createDatas) {
104+
for (const createData of createDatas) {
105105
await removeUploadedFiles(uploadFields, createData)
106106
}
107107

@@ -258,7 +258,7 @@ export const createUploadsExtension = <MNames extends ModelNames = ModelNames>(
258258
return async () => {
259259
const base64UploadFields: Record<keyof typeof needs, string> = {}
260260

261-
for await (const field of uploadFields) {
261+
for (const field of uploadFields) {
262262
base64UploadFields[field] = await fileToDataUri(
263263
modelData[field] as string,
264264
storageAdapter,
@@ -329,7 +329,7 @@ export const createUploadsExtension = <MNames extends ModelNames = ModelNames>(
329329
return
330330
}
331331

332-
for await (const field of fieldsToDelete) {
332+
for (const field of fieldsToDelete) {
333333
const uploadLocation = data?.[field]
334334
if (uploadLocation) {
335335
try {

yarn.lock

Lines changed: 87 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -8331,8 +8331,8 @@ __metadata:
83318331
"@redwoodjs/eslint-plugin": "workspace:*"
83328332
"@redwoodjs/internal": "workspace:*"
83338333
"@redwoodjs/project-config": "workspace:*"
8334-
"@typescript-eslint/eslint-plugin": "npm:8.5.0"
8335-
"@typescript-eslint/parser": "npm:8.5.0"
8334+
"@typescript-eslint/eslint-plugin": "npm:8.19.1"
8335+
"@typescript-eslint/parser": "npm:8.19.1"
83368336
eslint: "npm:8.57.1"
83378337
eslint-config-prettier: "npm:9.1.0"
83388338
eslint-import-resolver-babel-module: "npm:5.3.2"
@@ -8355,9 +8355,9 @@ __metadata:
83558355
"@redwoodjs/framework-tools": "workspace:*"
83568356
"@types/eslint": "npm:8.56.12"
83578357
"@types/estree": "npm:1.0.6"
8358-
"@typescript-eslint/parser": "npm:8.5.0"
8359-
"@typescript-eslint/rule-tester": "npm:8.5.0"
8360-
"@typescript-eslint/utils": "npm:8.5.0"
8358+
"@typescript-eslint/parser": "npm:8.19.1"
8359+
"@typescript-eslint/rule-tester": "npm:8.19.1"
8360+
"@typescript-eslint/utils": "npm:8.19.1"
83618361
eslint: "npm:8.57.1"
83628362
tsx: "npm:4.19.2"
83638363
typescript: "npm:5.6.2"
@@ -11586,135 +11586,131 @@ __metadata:
1158611586
languageName: node
1158711587
linkType: hard
1158811588

11589-
"@typescript-eslint/eslint-plugin@npm:8.5.0":
11590-
version: 8.5.0
11591-
resolution: "@typescript-eslint/eslint-plugin@npm:8.5.0"
11589+
"@typescript-eslint/eslint-plugin@npm:8.19.1":
11590+
version: 8.19.1
11591+
resolution: "@typescript-eslint/eslint-plugin@npm:8.19.1"
1159211592
dependencies:
1159311593
"@eslint-community/regexpp": "npm:^4.10.0"
11594-
"@typescript-eslint/scope-manager": "npm:8.5.0"
11595-
"@typescript-eslint/type-utils": "npm:8.5.0"
11596-
"@typescript-eslint/utils": "npm:8.5.0"
11597-
"@typescript-eslint/visitor-keys": "npm:8.5.0"
11594+
"@typescript-eslint/scope-manager": "npm:8.19.1"
11595+
"@typescript-eslint/type-utils": "npm:8.19.1"
11596+
"@typescript-eslint/utils": "npm:8.19.1"
11597+
"@typescript-eslint/visitor-keys": "npm:8.19.1"
1159811598
graphemer: "npm:^1.4.0"
1159911599
ignore: "npm:^5.3.1"
1160011600
natural-compare: "npm:^1.4.0"
11601-
ts-api-utils: "npm:^1.3.0"
11601+
ts-api-utils: "npm:^2.0.0"
1160211602
peerDependencies:
1160311603
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
1160411604
eslint: ^8.57.0 || ^9.0.0
11605-
peerDependenciesMeta:
11606-
typescript:
11607-
optional: true
11608-
checksum: 10c0/69ae7067e03d2d8d442e69d668235bdafd63b07229d0be27025eaad8aa468b5af8ac54627021e0e3a060df04ed1c39d1327a0b11469ac72405b52b74a79f402b
11605+
typescript: ">=4.8.4 <5.8.0"
11606+
checksum: 10c0/993784b04533b13c3f3919c793cfc3a369fa61692e1a2d72de6fba27df247c275d852cdcbc4e393c310b73fce8d34d210a9b632b66f4d761a1a3b4781f8fa93f
1160911607
languageName: node
1161011608
linkType: hard
1161111609

11612-
"@typescript-eslint/parser@npm:8.5.0":
11613-
version: 8.5.0
11614-
resolution: "@typescript-eslint/parser@npm:8.5.0"
11610+
"@typescript-eslint/parser@npm:8.19.1":
11611+
version: 8.19.1
11612+
resolution: "@typescript-eslint/parser@npm:8.19.1"
1161511613
dependencies:
11616-
"@typescript-eslint/scope-manager": "npm:8.5.0"
11617-
"@typescript-eslint/types": "npm:8.5.0"
11618-
"@typescript-eslint/typescript-estree": "npm:8.5.0"
11619-
"@typescript-eslint/visitor-keys": "npm:8.5.0"
11614+
"@typescript-eslint/scope-manager": "npm:8.19.1"
11615+
"@typescript-eslint/types": "npm:8.19.1"
11616+
"@typescript-eslint/typescript-estree": "npm:8.19.1"
11617+
"@typescript-eslint/visitor-keys": "npm:8.19.1"
1162011618
debug: "npm:^4.3.4"
1162111619
peerDependencies:
1162211620
eslint: ^8.57.0 || ^9.0.0
11623-
peerDependenciesMeta:
11624-
typescript:
11625-
optional: true
11626-
checksum: 10c0/509fdd605b86c7d025928f20e1035712c2fc268c34b1af84248ed0b53d699034f19caf98e085c5c758d3025e29939dd12eea427c72cae9e5ea79274364851f0a
11621+
typescript: ">=4.8.4 <5.8.0"
11622+
checksum: 10c0/1afbd2d0a25f439943bdc94637417429574eb3889a2a1ce24bd425721713aca213808a975bb518a6616171783bc04fa973167f05fc6a96cfd88c1d1666077ad4
1162711623
languageName: node
1162811624
linkType: hard
1162911625

11630-
"@typescript-eslint/rule-tester@npm:8.5.0":
11631-
version: 8.5.0
11632-
resolution: "@typescript-eslint/rule-tester@npm:8.5.0"
11626+
"@typescript-eslint/rule-tester@npm:8.19.1":
11627+
version: 8.19.1
11628+
resolution: "@typescript-eslint/rule-tester@npm:8.19.1"
1163311629
dependencies:
11634-
"@typescript-eslint/typescript-estree": "npm:8.5.0"
11635-
"@typescript-eslint/utils": "npm:8.5.0"
11630+
"@typescript-eslint/typescript-estree": "npm:8.19.1"
11631+
"@typescript-eslint/utils": "npm:8.19.1"
1163611632
ajv: "npm:^6.12.6"
1163711633
json-stable-stringify-without-jsonify: "npm:^1.0.1"
1163811634
lodash.merge: "npm:4.6.2"
1163911635
semver: "npm:^7.6.0"
1164011636
peerDependencies:
1164111637
eslint: ^8.57.0 || ^9.0.0
11642-
checksum: 10c0/decb1186abd37b8a5fd62b8b7d77673dc591b9786fb696042e4afa4634ae5e8ae098f52e3ca2d7ce7d9c2ad76897f2a45afeaaf11fdd697747a01e0f51c760a6
11638+
checksum: 10c0/eb8d3ff4113aca41aa3df1bf9df67828e03c9aff6beaae522f374408786691f177b66b03eef55f6907fe50325eea3d2f7e215acfd91de3f34edd0b6cd9e94f91
1164311639
languageName: node
1164411640
linkType: hard
1164511641

11646-
"@typescript-eslint/scope-manager@npm:8.5.0":
11647-
version: 8.5.0
11648-
resolution: "@typescript-eslint/scope-manager@npm:8.5.0"
11642+
"@typescript-eslint/scope-manager@npm:8.19.1":
11643+
version: 8.19.1
11644+
resolution: "@typescript-eslint/scope-manager@npm:8.19.1"
1164911645
dependencies:
11650-
"@typescript-eslint/types": "npm:8.5.0"
11651-
"@typescript-eslint/visitor-keys": "npm:8.5.0"
11652-
checksum: 10c0/868602f9324a6e15fcae017acd3b0832e9f2c8c8cd315667df37c2e7c765cda5fba7c4bede931f32cc04819ba97cf74a5fddb085c6f1c7993f1fb085ba126422
11646+
"@typescript-eslint/types": "npm:8.19.1"
11647+
"@typescript-eslint/visitor-keys": "npm:8.19.1"
11648+
checksum: 10c0/7dca0c28ad27a0c7e26499e0f584f98efdcf34087f46aadc661b36c310484b90655e83818bafd249b5a28c7094a69c54d553f6cd403869bf134f95a9148733f5
1165311649
languageName: node
1165411650
linkType: hard
1165511651

11656-
"@typescript-eslint/type-utils@npm:8.5.0":
11657-
version: 8.5.0
11658-
resolution: "@typescript-eslint/type-utils@npm:8.5.0"
11652+
"@typescript-eslint/type-utils@npm:8.19.1":
11653+
version: 8.19.1
11654+
resolution: "@typescript-eslint/type-utils@npm:8.19.1"
1165911655
dependencies:
11660-
"@typescript-eslint/typescript-estree": "npm:8.5.0"
11661-
"@typescript-eslint/utils": "npm:8.5.0"
11656+
"@typescript-eslint/typescript-estree": "npm:8.19.1"
11657+
"@typescript-eslint/utils": "npm:8.19.1"
1166211658
debug: "npm:^4.3.4"
11663-
ts-api-utils: "npm:^1.3.0"
11664-
peerDependenciesMeta:
11665-
typescript:
11666-
optional: true
11667-
checksum: 10c0/675d3e41f938d16e9268fd33764a4e16b12a4a9817e61d5e2508a07fe6783c69ce9d05facc61822b5647c71d767929618ed37b8b93f423f7c2ccb62cfeb4343b
11659+
ts-api-utils: "npm:^2.0.0"
11660+
peerDependencies:
11661+
eslint: ^8.57.0 || ^9.0.0
11662+
typescript: ">=4.8.4 <5.8.0"
11663+
checksum: 10c0/757592b515beec58c079c605aa648ba94d985ae48ba40460034e849c7bc2b603b1da6113e59688e284608c9d5ccaa27adf0a14fb032cb1782200c6acae51ddd2
1166811664
languageName: node
1166911665
linkType: hard
1167011666

11671-
"@typescript-eslint/types@npm:8.5.0":
11672-
version: 8.5.0
11673-
resolution: "@typescript-eslint/types@npm:8.5.0"
11674-
checksum: 10c0/f0b666b5c001b9779bfd9e4c7d031843d07264429d5bcf5d636f26f96cd5d949a33f5d6a645b8d74b93daf565a468476a6a4935dd7135a200250fb03acbe4988
11667+
"@typescript-eslint/types@npm:8.19.1":
11668+
version: 8.19.1
11669+
resolution: "@typescript-eslint/types@npm:8.19.1"
11670+
checksum: 10c0/e907bf096d5ed7a812a1e537a98dd881ab5d2d47e072225bfffaa218c1433115a148b27a15744db8374b46dac721617c6d13a1da255fdeb369cf193416533f6e
1167511671
languageName: node
1167611672
linkType: hard
1167711673

11678-
"@typescript-eslint/typescript-estree@npm:8.5.0":
11679-
version: 8.5.0
11680-
resolution: "@typescript-eslint/typescript-estree@npm:8.5.0"
11674+
"@typescript-eslint/typescript-estree@npm:8.19.1":
11675+
version: 8.19.1
11676+
resolution: "@typescript-eslint/typescript-estree@npm:8.19.1"
1168111677
dependencies:
11682-
"@typescript-eslint/types": "npm:8.5.0"
11683-
"@typescript-eslint/visitor-keys": "npm:8.5.0"
11678+
"@typescript-eslint/types": "npm:8.19.1"
11679+
"@typescript-eslint/visitor-keys": "npm:8.19.1"
1168411680
debug: "npm:^4.3.4"
1168511681
fast-glob: "npm:^3.3.2"
1168611682
is-glob: "npm:^4.0.3"
1168711683
minimatch: "npm:^9.0.4"
1168811684
semver: "npm:^7.6.0"
11689-
ts-api-utils: "npm:^1.3.0"
11690-
peerDependenciesMeta:
11691-
typescript:
11692-
optional: true
11693-
checksum: 10c0/f62f03d0c5dc57b2b54dbe1cbd027966f774f241279655f46c64145abb54b765176a0cd40447583ba56ada306181da9a82e39b777c78128e105e4ea98c609350
11685+
ts-api-utils: "npm:^2.0.0"
11686+
peerDependencies:
11687+
typescript: ">=4.8.4 <5.8.0"
11688+
checksum: 10c0/549d9d565a58a25fc8397a555506f2e8d29a740f5b6ed9105479e22de5aab89d9d535959034a8e9d4115adb435de09ee6987d28e8922052eea577842ddce1a7a
1169411689
languageName: node
1169511690
linkType: hard
1169611691

11697-
"@typescript-eslint/utils@npm:8.5.0":
11698-
version: 8.5.0
11699-
resolution: "@typescript-eslint/utils@npm:8.5.0"
11692+
"@typescript-eslint/utils@npm:8.19.1":
11693+
version: 8.19.1
11694+
resolution: "@typescript-eslint/utils@npm:8.19.1"
1170011695
dependencies:
1170111696
"@eslint-community/eslint-utils": "npm:^4.4.0"
11702-
"@typescript-eslint/scope-manager": "npm:8.5.0"
11703-
"@typescript-eslint/types": "npm:8.5.0"
11704-
"@typescript-eslint/typescript-estree": "npm:8.5.0"
11697+
"@typescript-eslint/scope-manager": "npm:8.19.1"
11698+
"@typescript-eslint/types": "npm:8.19.1"
11699+
"@typescript-eslint/typescript-estree": "npm:8.19.1"
1170511700
peerDependencies:
1170611701
eslint: ^8.57.0 || ^9.0.0
11707-
checksum: 10c0/0cb0bfdaf0da79d13c0d0379478eb14b5825d235873bc7181e70c4f6297fa1c74431ef730cbc2912fe1814dd8d46c6515ce22b39c57e8f03c337aa152fd49a4e
11702+
typescript: ">=4.8.4 <5.8.0"
11703+
checksum: 10c0/f7d2fe9a2bd8cb3ae6fafe5e465882a6784b2acf81d43d194c579381b92651c2ffc0fca69d2a35eee119f539622752a0e9ec063aaec7576d5d2bfe68b441980d
1170811704
languageName: node
1170911705
linkType: hard
1171011706

11711-
"@typescript-eslint/visitor-keys@npm:8.5.0":
11712-
version: 8.5.0
11713-
resolution: "@typescript-eslint/visitor-keys@npm:8.5.0"
11707+
"@typescript-eslint/visitor-keys@npm:8.19.1":
11708+
version: 8.19.1
11709+
resolution: "@typescript-eslint/visitor-keys@npm:8.19.1"
1171411710
dependencies:
11715-
"@typescript-eslint/types": "npm:8.5.0"
11716-
eslint-visitor-keys: "npm:^3.4.3"
11717-
checksum: 10c0/8b9e81968ad36e8af18ac17b63c4e0764612451ca085676c939b723549052243f63577d2706bc2da48174f11bf47587ab47e6e0b7c5b28d9f3c1ef7b9aad322d
11711+
"@typescript-eslint/types": "npm:8.19.1"
11712+
eslint-visitor-keys: "npm:^4.2.0"
11713+
checksum: 10c0/117537450a099f51f3f0d39186f248ae370bdc1b7f6975dbdbffcfc89e6e1aa47c1870db790d4f778a48f2c1f6cd9c269b63867c12afaa424367c63dabee8fd0
1171811714
languageName: node
1171911715
linkType: hard
1172011716

@@ -17062,6 +17058,13 @@ __metadata:
1706217058
languageName: node
1706317059
linkType: hard
1706417060

17061+
"eslint-visitor-keys@npm:^4.2.0":
17062+
version: 4.2.0
17063+
resolution: "eslint-visitor-keys@npm:4.2.0"
17064+
checksum: 10c0/2ed81c663b147ca6f578312919483eb040295bbab759e5a371953456c636c5b49a559883e2677112453728d66293c0a4c90ab11cab3428cf02a0236d2e738269
17065+
languageName: node
17066+
linkType: hard
17067+
1706517068
"eslint@npm:8.57.1":
1706617069
version: 8.57.1
1706717070
resolution: "eslint@npm:8.57.1"
@@ -26955,8 +26958,8 @@ __metadata:
2695526958
"@types/jscodeshift": "npm:0.12.0"
2695626959
"@types/ncp": "npm:2.0.8"
2695726960
"@types/prompts": "npm:2.4.9"
26958-
"@typescript-eslint/eslint-plugin": "npm:8.5.0"
26959-
"@typescript-eslint/parser": "npm:8.5.0"
26961+
"@typescript-eslint/eslint-plugin": "npm:8.19.1"
26962+
"@typescript-eslint/parser": "npm:8.19.1"
2696026963
"@yarnpkg/types": "npm:4.0.0"
2696126964
all-contributors-cli: "npm:6.26.1"
2696226965
babel-jest: "npm:^29.7.0"
@@ -28878,12 +28881,12 @@ __metadata:
2887828881
languageName: node
2887928882
linkType: hard
2888028883

28881-
"ts-api-utils@npm:^1.3.0":
28882-
version: 1.3.0
28883-
resolution: "ts-api-utils@npm:1.3.0"
28884+
"ts-api-utils@npm:^2.0.0":
28885+
version: 2.0.0
28886+
resolution: "ts-api-utils@npm:2.0.0"
2888428887
peerDependencies:
28885-
typescript: ">=4.2.0"
28886-
checksum: 10c0/f54a0ba9ed56ce66baea90a3fa087a484002e807f28a8ccb2d070c75e76bde64bd0f6dce98b3802834156306050871b67eec325cb4e918015a360a3f0868c77c
28888+
typescript: ">=4.8.4"
28889+
checksum: 10c0/6165e29a5b75bd0218e3cb0f9ee31aa893dbd819c2e46dbb086c841121eb0436ed47c2c18a20cb3463d74fd1fb5af62e2604ba5971cc48e5b38ebbdc56746dfc
2888728890
languageName: node
2888828891
linkType: hard
2888928892

0 commit comments

Comments
 (0)