Skip to content

Commit d7e4b7a

Browse files
authored
chore: upgrade @typescript-eslint/* packages to be compatible with ts5.2 (#26923)
Also removes the following warning: ``` DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead. ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 49dab34 commit d7e4b7a

File tree

10 files changed

+1570
-1548
lines changed

10 files changed

+1570
-1548
lines changed

packages/@aws-cdk-testing/cli-integ/lib/aws.ts

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ async function awsCall<
129129
Svc extends AWS.Service,
130130
Calls extends ServiceCalls<Svc>,
131131
Call extends keyof Calls,
132+
// eslint-disable-next-line @typescript-eslint/no-shadow
132133
>(ctor: new (config: any) => Svc, config: any, call: Call, request: First<Calls[Call]>): Promise<Second<Calls[Call]>> {
133134
const cfn = new ctor(config);
134135
const response = ((cfn as any)[call] as any)(request);
@@ -156,6 +157,7 @@ type AwsCaller<A> = <B extends keyof ServiceCalls<A>>(call: B, request: First<Se
156157
* }
157158
* ```
158159
*/
160+
// eslint-disable-next-line @typescript-eslint/no-shadow
159161
function makeAwsCaller<A extends AWS.Service>(ctor: new (config: any) => A, config: any): AwsCaller<A> {
160162
return <B extends keyof ServiceCalls<A>>(call: B, request: First<ServiceCalls<A>[B]>): Promise<Second<ServiceCalls<A>[B]>> => {
161163
return awsCall(ctor, config, call, request);

packages/@aws-cdk/cli-lib-alpha/THIRD_PARTY_LICENSES

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
238238

239239
----------------
240240

241-
** aws-sdk@2.1442.0 - https://www.npmjs.com/package/aws-sdk/v/2.1442.0 | Apache-2.0
241+
** aws-sdk@2.1446.0 - https://www.npmjs.com/package/aws-sdk/v/2.1446.0 | Apache-2.0
242242
AWS SDK for JavaScript
243243
Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
244244

packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
176176

177177
----------------
178178

179-
** aws-sdk@2.1442.0 - https://www.npmjs.com/package/aws-sdk/v/2.1442.0 | Apache-2.0
179+
** aws-sdk@2.1446.0 - https://www.npmjs.com/package/aws-sdk/v/2.1446.0 | Apache-2.0
180180
AWS SDK for JavaScript
181181
Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
182182

packages/aws-cdk/THIRD_PARTY_LICENSES

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
238238

239239
----------------
240240

241-
** aws-sdk@2.1442.0 - https://www.npmjs.com/package/aws-sdk/v/2.1442.0 | Apache-2.0
241+
** aws-sdk@2.1446.0 - https://www.npmjs.com/package/aws-sdk/v/2.1446.0 | Apache-2.0
242242
AWS SDK for JavaScript
243243
Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
244244

packages/awslint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"@types/yargs": "^15.0.15",
3232
"@aws-cdk/pkglint": "0.0.0",
3333
"typescript": "~5.1.6",
34-
"@typescript-eslint/eslint-plugin": "^4.33.0",
35-
"@typescript-eslint/parser": "^4.33.0",
34+
"@typescript-eslint/eslint-plugin": "^6.5.0",
35+
"@typescript-eslint/parser": "^6.5.0",
3636
"eslint": "^7.32.0",
3737
"eslint-import-resolver-node": "^0.3.9",
3838
"eslint-import-resolver-typescript": "^2.7.1",

tools/@aws-cdk/cdk-build-tools/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"@aws-cdk/eslint-plugin": "0.0.0",
4848
"@aws-cdk/yarn-cling": "0.0.0",
4949
"@aws-cdk/node-bundle": "0.0.0",
50-
"@typescript-eslint/eslint-plugin": "^4.33.0",
51-
"@typescript-eslint/parser": "^4.33.0",
50+
"@typescript-eslint/eslint-plugin": "^6.5.0",
51+
"@typescript-eslint/parser": "^6.5.0",
5252
"awslint": "0.0.0",
5353
"chalk": "^4",
5454
"eslint": "^7.32.0",

tools/@aws-cdk/eslint-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"typescript": "~5.1.6"
2323
},
2424
"dependencies": {
25-
"@typescript-eslint/parser": "^4.33.0",
25+
"@typescript-eslint/parser": "^6.5.0",
2626
"eslint": "^7.32.0",
2727
"fs-extra": "^9.1.0"
2828
},

tools/@aws-cdk/node-bundle/package.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/@aws-cdk/pkglint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@types/jest": "^29.5.4",
4444
"@types/semver": "^7.5.0",
4545
"@types/yargs": "^15.0.15",
46-
"@typescript-eslint/eslint-plugin": "^4.33.0",
47-
"@typescript-eslint/parser": "^4.33.0",
46+
"@typescript-eslint/eslint-plugin": "^6.5.0",
47+
"@typescript-eslint/parser": "^6.5.0",
4848
"eslint": "^7.32.0",
4949
"eslint-import-resolver-node": "^0.3.9",
5050
"eslint-import-resolver-typescript": "^2.7.1",

0 commit comments

Comments
 (0)