Skip to content

Commit 7610d80

Browse files
clydinalan-agius4
authored andcommitted
test: update @typescript-eslint/eslint-plugin to v8.0.1
The `@typescript-eslint/eslint-plugin` package has been updated to v8.0.1. With new major versions of the package, additional rules are added to the default recommended list. Several such new rules have been disabled to minimize the code changes to update the package. Several minor type only fixes were however included to reduce the number of disabled rules.
1 parent 4243830 commit 7610d80

File tree

6 files changed

+36
-78
lines changed

6 files changed

+36
-78
lines changed

.eslintrc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@
115115
"@typescript-eslint/unbound-method": "off",
116116
"@typescript-eslint/no-unsafe-enum-comparison": "off",
117117
"@typescript-eslint/no-redundant-type-constituents": "off",
118-
"@typescript-eslint/no-base-to-string": "off"
118+
"@typescript-eslint/no-base-to-string": "off",
119+
"@typescript-eslint/no-empty-object-type": "off",
120+
"@typescript-eslint/no-require-imports": "off",
121+
"@typescript-eslint/prefer-promise-reject-errors": "off",
122+
"@typescript-eslint/only-throw-error": "off",
123+
"@typescript-eslint/no-unsafe-function-type": "off"
119124
},
120125
"overrides": [
121126
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"@types/yargs": "^17.0.20",
113113
"@types/yargs-parser": "^21.0.0",
114114
"@types/yarnpkg__lockfile": "^1.1.5",
115-
"@typescript-eslint/eslint-plugin": "7.18.0",
115+
"@typescript-eslint/eslint-plugin": "8.0.1",
116116
"@typescript-eslint/parser": "8.0.1",
117117
"@vitejs/plugin-basic-ssl": "1.1.0",
118118
"@web/test-runner": "^0.18.0",

packages/angular_devkit/core/src/json/schema/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export type PromptProvider = (
7272
) => ObservableInput<{ [id: string]: JsonValue }>;
7373

7474
export interface SchemaRegistry {
75+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
7576
compile(schema: Object): Promise<SchemaValidator>;
7677

7778
/** @private */

packages/ngtools/webpack/src/transformers/find_image_domains.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const URL_REGEX = /(https?:\/\/[^/]*)\//g;
2020
export function findImageDomains(imageDomains: Set<string>): ts.TransformerFactory<ts.SourceFile> {
2121
return (context: ts.TransformationContext) => {
2222
return (sourceFile: ts.SourceFile) => {
23-
const isBuiltinImageLoader = (node: ts.CallExpression): Boolean => {
23+
const isBuiltinImageLoader = (node: ts.CallExpression): boolean => {
2424
return BUILTIN_LOADERS.has(node.expression.getText());
2525
};
2626

@@ -115,7 +115,7 @@ export function findImageDomains(imageDomains: Set<string>): ts.TransformerFacto
115115
return node;
116116
}
117117

118-
function isProvidersFeatureElement(node: ts.Node): Boolean {
118+
function isProvidersFeatureElement(node: ts.Node): boolean {
119119
return (
120120
ts.isCallExpression(node) &&
121121
ts.isPropertyAccessExpression(node.expression) &&

scripts/validate-user-analytics.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function _checkDimensions(dimensionsTable: string) {
6767
const eventCustomDimensionValues = new Set(Object.values(EventCustomDimension));
6868

6969
console.info('Gathering options for user-analytics...');
70-
const schemaUserAnalyticsValidator = (obj: Object) => {
70+
const schemaUserAnalyticsValidator = (obj: object) => {
7171
for (const value of Object.values(obj)) {
7272
if (value && typeof value === 'object') {
7373
const userAnalytics = value['x-user-analytics'];

yarn.lock

Lines changed: 25 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ __metadata:
685685
"@types/yargs": "npm:^17.0.20"
686686
"@types/yargs-parser": "npm:^21.0.0"
687687
"@types/yarnpkg__lockfile": "npm:^1.1.5"
688-
"@typescript-eslint/eslint-plugin": "npm:7.18.0"
688+
"@typescript-eslint/eslint-plugin": "npm:8.0.1"
689689
"@typescript-eslint/parser": "npm:8.0.1"
690690
"@vitejs/plugin-basic-ssl": "npm:1.1.0"
691691
"@web/test-runner": "npm:^0.18.0"
@@ -5319,26 +5319,26 @@ __metadata:
53195319
languageName: node
53205320
linkType: hard
53215321

5322-
"@typescript-eslint/eslint-plugin@npm:7.18.0":
5323-
version: 7.18.0
5324-
resolution: "@typescript-eslint/eslint-plugin@npm:7.18.0"
5322+
"@typescript-eslint/eslint-plugin@npm:8.0.1":
5323+
version: 8.0.1
5324+
resolution: "@typescript-eslint/eslint-plugin@npm:8.0.1"
53255325
dependencies:
53265326
"@eslint-community/regexpp": "npm:^4.10.0"
5327-
"@typescript-eslint/scope-manager": "npm:7.18.0"
5328-
"@typescript-eslint/type-utils": "npm:7.18.0"
5329-
"@typescript-eslint/utils": "npm:7.18.0"
5330-
"@typescript-eslint/visitor-keys": "npm:7.18.0"
5327+
"@typescript-eslint/scope-manager": "npm:8.0.1"
5328+
"@typescript-eslint/type-utils": "npm:8.0.1"
5329+
"@typescript-eslint/utils": "npm:8.0.1"
5330+
"@typescript-eslint/visitor-keys": "npm:8.0.1"
53315331
graphemer: "npm:^1.4.0"
53325332
ignore: "npm:^5.3.1"
53335333
natural-compare: "npm:^1.4.0"
53345334
ts-api-utils: "npm:^1.3.0"
53355335
peerDependencies:
5336-
"@typescript-eslint/parser": ^7.0.0
5337-
eslint: ^8.56.0
5336+
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
5337+
eslint: ^8.57.0 || ^9.0.0
53385338
peerDependenciesMeta:
53395339
typescript:
53405340
optional: true
5341-
checksum: 10c0/2b37948fa1b0dab77138909dabef242a4d49ab93e4019d4ef930626f0a7d96b03e696cd027fa0087881c20e73be7be77c942606b4a76fa599e6b37f6985304c3
5341+
checksum: 10c0/fd4e11599c4a85d0fbbd0be350f11acaa32d424bc5c2c0b672133266b4b56fc20a78edd0c7b803b4223a1a66736624561a60fee827738118550733d14afb775a
53425342
languageName: node
53435343
linkType: hard
53445344

@@ -5360,16 +5360,6 @@ __metadata:
53605360
languageName: node
53615361
linkType: hard
53625362

5363-
"@typescript-eslint/scope-manager@npm:7.18.0":
5364-
version: 7.18.0
5365-
resolution: "@typescript-eslint/scope-manager@npm:7.18.0"
5366-
dependencies:
5367-
"@typescript-eslint/types": "npm:7.18.0"
5368-
"@typescript-eslint/visitor-keys": "npm:7.18.0"
5369-
checksum: 10c0/038cd58c2271de146b3a594afe2c99290034033326d57ff1f902976022c8b0138ffd3cb893ae439ae41003b5e4bcc00cabf6b244ce40e8668f9412cc96d97b8e
5370-
languageName: node
5371-
linkType: hard
5372-
53735363
"@typescript-eslint/scope-manager@npm:8.0.1":
53745364
version: 8.0.1
53755365
resolution: "@typescript-eslint/scope-manager@npm:8.0.1"
@@ -5380,27 +5370,18 @@ __metadata:
53805370
languageName: node
53815371
linkType: hard
53825372

5383-
"@typescript-eslint/type-utils@npm:7.18.0":
5384-
version: 7.18.0
5385-
resolution: "@typescript-eslint/type-utils@npm:7.18.0"
5373+
"@typescript-eslint/type-utils@npm:8.0.1":
5374+
version: 8.0.1
5375+
resolution: "@typescript-eslint/type-utils@npm:8.0.1"
53865376
dependencies:
5387-
"@typescript-eslint/typescript-estree": "npm:7.18.0"
5388-
"@typescript-eslint/utils": "npm:7.18.0"
5377+
"@typescript-eslint/typescript-estree": "npm:8.0.1"
5378+
"@typescript-eslint/utils": "npm:8.0.1"
53895379
debug: "npm:^4.3.4"
53905380
ts-api-utils: "npm:^1.3.0"
5391-
peerDependencies:
5392-
eslint: ^8.56.0
53935381
peerDependenciesMeta:
53945382
typescript:
53955383
optional: true
5396-
checksum: 10c0/ad92a38007be620f3f7036f10e234abdc2fdc518787b5a7227e55fd12896dacf56e8b34578723fbf9bea8128df2510ba8eb6739439a3879eda9519476d5783fd
5397-
languageName: node
5398-
linkType: hard
5399-
5400-
"@typescript-eslint/types@npm:7.18.0":
5401-
version: 7.18.0
5402-
resolution: "@typescript-eslint/types@npm:7.18.0"
5403-
checksum: 10c0/eb7371ac55ca77db8e59ba0310b41a74523f17e06f485a0ef819491bc3dd8909bb930120ff7d30aaf54e888167e0005aa1337011f3663dc90fb19203ce478054
5384+
checksum: 10c0/5cbf604044d5cd9cc6e95a2eee5a62803a09f46ccf4aa7293e373a4be8b7b57b470cbc97c1121ef354f842e7fc1d17b30c81bf3540023382ad5e339c9ca3ce15
54045385
languageName: node
54055386
linkType: hard
54065387

@@ -5411,25 +5392,6 @@ __metadata:
54115392
languageName: node
54125393
linkType: hard
54135394

5414-
"@typescript-eslint/typescript-estree@npm:7.18.0":
5415-
version: 7.18.0
5416-
resolution: "@typescript-eslint/typescript-estree@npm:7.18.0"
5417-
dependencies:
5418-
"@typescript-eslint/types": "npm:7.18.0"
5419-
"@typescript-eslint/visitor-keys": "npm:7.18.0"
5420-
debug: "npm:^4.3.4"
5421-
globby: "npm:^11.1.0"
5422-
is-glob: "npm:^4.0.3"
5423-
minimatch: "npm:^9.0.4"
5424-
semver: "npm:^7.6.0"
5425-
ts-api-utils: "npm:^1.3.0"
5426-
peerDependenciesMeta:
5427-
typescript:
5428-
optional: true
5429-
checksum: 10c0/0c7f109a2e460ec8a1524339479cf78ff17814d23c83aa5112c77fb345e87b3642616291908dcddea1e671da63686403dfb712e4a4435104f92abdfddf9aba81
5430-
languageName: node
5431-
linkType: hard
5432-
54335395
"@typescript-eslint/typescript-estree@npm:8.0.1":
54345396
version: 8.0.1
54355397
resolution: "@typescript-eslint/typescript-estree@npm:8.0.1"
@@ -5449,27 +5411,17 @@ __metadata:
54495411
languageName: node
54505412
linkType: hard
54515413

5452-
"@typescript-eslint/utils@npm:7.18.0":
5453-
version: 7.18.0
5454-
resolution: "@typescript-eslint/utils@npm:7.18.0"
5414+
"@typescript-eslint/utils@npm:8.0.1":
5415+
version: 8.0.1
5416+
resolution: "@typescript-eslint/utils@npm:8.0.1"
54555417
dependencies:
54565418
"@eslint-community/eslint-utils": "npm:^4.4.0"
5457-
"@typescript-eslint/scope-manager": "npm:7.18.0"
5458-
"@typescript-eslint/types": "npm:7.18.0"
5459-
"@typescript-eslint/typescript-estree": "npm:7.18.0"
5419+
"@typescript-eslint/scope-manager": "npm:8.0.1"
5420+
"@typescript-eslint/types": "npm:8.0.1"
5421+
"@typescript-eslint/typescript-estree": "npm:8.0.1"
54605422
peerDependencies:
5461-
eslint: ^8.56.0
5462-
checksum: 10c0/a25a6d50eb45c514469a01ff01f215115a4725fb18401055a847ddf20d1b681409c4027f349033a95c4ff7138d28c3b0a70253dfe8262eb732df4b87c547bd1e
5463-
languageName: node
5464-
linkType: hard
5465-
5466-
"@typescript-eslint/visitor-keys@npm:7.18.0":
5467-
version: 7.18.0
5468-
resolution: "@typescript-eslint/visitor-keys@npm:7.18.0"
5469-
dependencies:
5470-
"@typescript-eslint/types": "npm:7.18.0"
5471-
eslint-visitor-keys: "npm:^3.4.3"
5472-
checksum: 10c0/538b645f8ff1d9debf264865c69a317074eaff0255e63d7407046176b0f6a6beba34a6c51d511f12444bae12a98c69891eb6f403c9f54c6c2e2849d1c1cb73c0
5423+
eslint: ^8.57.0 || ^9.0.0
5424+
checksum: 10c0/9ab4baee82ac74caee18fb687697698043385aea5d0ec4bb34d874a6969eaa3e48f9319ab023cbcb6114f86de17f7360a43460fb4159c61760a2d2984004dd21
54735425
languageName: node
54745426
linkType: hard
54755427

0 commit comments

Comments
 (0)