Skip to content

Commit

Permalink
test: update @typescript-eslint/eslint-plugin to v8.0.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clydin authored and alan-agius4 committed Aug 7, 2024
1 parent 4243830 commit 7610d80
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 78 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-base-to-string": "off"
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/prefer-promise-reject-errors": "off",
"@typescript-eslint/only-throw-error": "off",
"@typescript-eslint/no-unsafe-function-type": "off"
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"@types/yargs": "^17.0.20",
"@types/yargs-parser": "^21.0.0",
"@types/yarnpkg__lockfile": "^1.1.5",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.0.1",
"@typescript-eslint/parser": "8.0.1",
"@vitejs/plugin-basic-ssl": "1.1.0",
"@web/test-runner": "^0.18.0",
Expand Down
1 change: 1 addition & 0 deletions packages/angular_devkit/core/src/json/schema/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export type PromptProvider = (
) => ObservableInput<{ [id: string]: JsonValue }>;

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

/** @private */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const URL_REGEX = /(https?:\/\/[^/]*)\//g;
export function findImageDomains(imageDomains: Set<string>): ts.TransformerFactory<ts.SourceFile> {
return (context: ts.TransformationContext) => {
return (sourceFile: ts.SourceFile) => {
const isBuiltinImageLoader = (node: ts.CallExpression): Boolean => {
const isBuiltinImageLoader = (node: ts.CallExpression): boolean => {
return BUILTIN_LOADERS.has(node.expression.getText());
};

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

function isProvidersFeatureElement(node: ts.Node): Boolean {
function isProvidersFeatureElement(node: ts.Node): boolean {
return (
ts.isCallExpression(node) &&
ts.isPropertyAccessExpression(node.expression) &&
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-user-analytics.mts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function _checkDimensions(dimensionsTable: string) {
const eventCustomDimensionValues = new Set(Object.values(EventCustomDimension));

console.info('Gathering options for user-analytics...');
const schemaUserAnalyticsValidator = (obj: Object) => {
const schemaUserAnalyticsValidator = (obj: object) => {
for (const value of Object.values(obj)) {
if (value && typeof value === 'object') {
const userAnalytics = value['x-user-analytics'];
Expand Down
98 changes: 25 additions & 73 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ __metadata:
"@types/yargs": "npm:^17.0.20"
"@types/yargs-parser": "npm:^21.0.0"
"@types/yarnpkg__lockfile": "npm:^1.1.5"
"@typescript-eslint/eslint-plugin": "npm:7.18.0"
"@typescript-eslint/eslint-plugin": "npm:8.0.1"
"@typescript-eslint/parser": "npm:8.0.1"
"@vitejs/plugin-basic-ssl": "npm:1.1.0"
"@web/test-runner": "npm:^0.18.0"
Expand Down Expand Up @@ -5319,26 +5319,26 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/eslint-plugin@npm:7.18.0"
"@typescript-eslint/eslint-plugin@npm:8.0.1":
version: 8.0.1
resolution: "@typescript-eslint/eslint-plugin@npm:8.0.1"
dependencies:
"@eslint-community/regexpp": "npm:^4.10.0"
"@typescript-eslint/scope-manager": "npm:7.18.0"
"@typescript-eslint/type-utils": "npm:7.18.0"
"@typescript-eslint/utils": "npm:7.18.0"
"@typescript-eslint/visitor-keys": "npm:7.18.0"
"@typescript-eslint/scope-manager": "npm:8.0.1"
"@typescript-eslint/type-utils": "npm:8.0.1"
"@typescript-eslint/utils": "npm:8.0.1"
"@typescript-eslint/visitor-keys": "npm:8.0.1"
graphemer: "npm:^1.4.0"
ignore: "npm:^5.3.1"
natural-compare: "npm:^1.4.0"
ts-api-utils: "npm:^1.3.0"
peerDependencies:
"@typescript-eslint/parser": ^7.0.0
eslint: ^8.56.0
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/2b37948fa1b0dab77138909dabef242a4d49ab93e4019d4ef930626f0a7d96b03e696cd027fa0087881c20e73be7be77c942606b4a76fa599e6b37f6985304c3
checksum: 10c0/fd4e11599c4a85d0fbbd0be350f11acaa32d424bc5c2c0b672133266b4b56fc20a78edd0c7b803b4223a1a66736624561a60fee827738118550733d14afb775a
languageName: node
linkType: hard

Expand All @@ -5360,16 +5360,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/scope-manager@npm:7.18.0"
dependencies:
"@typescript-eslint/types": "npm:7.18.0"
"@typescript-eslint/visitor-keys": "npm:7.18.0"
checksum: 10c0/038cd58c2271de146b3a594afe2c99290034033326d57ff1f902976022c8b0138ffd3cb893ae439ae41003b5e4bcc00cabf6b244ce40e8668f9412cc96d97b8e
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:8.0.1":
version: 8.0.1
resolution: "@typescript-eslint/scope-manager@npm:8.0.1"
Expand All @@ -5380,27 +5370,18 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/type-utils@npm:7.18.0"
"@typescript-eslint/type-utils@npm:8.0.1":
version: 8.0.1
resolution: "@typescript-eslint/type-utils@npm:8.0.1"
dependencies:
"@typescript-eslint/typescript-estree": "npm:7.18.0"
"@typescript-eslint/utils": "npm:7.18.0"
"@typescript-eslint/typescript-estree": "npm:8.0.1"
"@typescript-eslint/utils": "npm:8.0.1"
debug: "npm:^4.3.4"
ts-api-utils: "npm:^1.3.0"
peerDependencies:
eslint: ^8.56.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/ad92a38007be620f3f7036f10e234abdc2fdc518787b5a7227e55fd12896dacf56e8b34578723fbf9bea8128df2510ba8eb6739439a3879eda9519476d5783fd
languageName: node
linkType: hard

"@typescript-eslint/types@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/types@npm:7.18.0"
checksum: 10c0/eb7371ac55ca77db8e59ba0310b41a74523f17e06f485a0ef819491bc3dd8909bb930120ff7d30aaf54e888167e0005aa1337011f3663dc90fb19203ce478054
checksum: 10c0/5cbf604044d5cd9cc6e95a2eee5a62803a09f46ccf4aa7293e373a4be8b7b57b470cbc97c1121ef354f842e7fc1d17b30c81bf3540023382ad5e339c9ca3ce15
languageName: node
linkType: hard

Expand All @@ -5411,25 +5392,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/typescript-estree@npm:7.18.0"
dependencies:
"@typescript-eslint/types": "npm:7.18.0"
"@typescript-eslint/visitor-keys": "npm:7.18.0"
debug: "npm:^4.3.4"
globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3"
minimatch: "npm:^9.0.4"
semver: "npm:^7.6.0"
ts-api-utils: "npm:^1.3.0"
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/0c7f109a2e460ec8a1524339479cf78ff17814d23c83aa5112c77fb345e87b3642616291908dcddea1e671da63686403dfb712e4a4435104f92abdfddf9aba81
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:8.0.1":
version: 8.0.1
resolution: "@typescript-eslint/typescript-estree@npm:8.0.1"
Expand All @@ -5449,27 +5411,17 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/utils@npm:7.18.0"
"@typescript-eslint/utils@npm:8.0.1":
version: 8.0.1
resolution: "@typescript-eslint/utils@npm:8.0.1"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.4.0"
"@typescript-eslint/scope-manager": "npm:7.18.0"
"@typescript-eslint/types": "npm:7.18.0"
"@typescript-eslint/typescript-estree": "npm:7.18.0"
"@typescript-eslint/scope-manager": "npm:8.0.1"
"@typescript-eslint/types": "npm:8.0.1"
"@typescript-eslint/typescript-estree": "npm:8.0.1"
peerDependencies:
eslint: ^8.56.0
checksum: 10c0/a25a6d50eb45c514469a01ff01f215115a4725fb18401055a847ddf20d1b681409c4027f349033a95c4ff7138d28c3b0a70253dfe8262eb732df4b87c547bd1e
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:7.18.0":
version: 7.18.0
resolution: "@typescript-eslint/visitor-keys@npm:7.18.0"
dependencies:
"@typescript-eslint/types": "npm:7.18.0"
eslint-visitor-keys: "npm:^3.4.3"
checksum: 10c0/538b645f8ff1d9debf264865c69a317074eaff0255e63d7407046176b0f6a6beba34a6c51d511f12444bae12a98c69891eb6f403c9f54c6c2e2849d1c1cb73c0
eslint: ^8.57.0 || ^9.0.0
checksum: 10c0/9ab4baee82ac74caee18fb687697698043385aea5d0ec4bb34d874a6969eaa3e48f9319ab023cbcb6114f86de17f7360a43460fb4159c61760a2d2984004dd21
languageName: node
linkType: hard

Expand Down

0 comments on commit 7610d80

Please sign in to comment.