From 3b48d9a26d46e881dc5f589680f7e9579ef85c23 Mon Sep 17 00:00:00 2001 From: Yury Bondarenko Date: Wed, 6 Mar 2024 10:45:59 +0100 Subject: [PATCH] Manually fix lint issues --- .../ldn-service-form.component.ts | 3 +- .../filters-section.component.spec.ts | 4 +- .../filters-section.component.ts | 2 +- .../browse-by-metadata.component.html | 2 +- .../community-list.component.html | 2 +- .../processes/process-data.service.spec.ts | 2 +- .../source/suggestion-source-data.service.ts | 2 +- .../target/suggestion-target-data.service.ts | 2 +- .../dso-edit-metadata-value.component.html | 2 +- .../metadata-values.component.html | 2 +- .../request-status-alert-box.component.html | 2 +- .../quality-assurance-events.component.html | 2 +- .../publication-claim.component.html | 8 +-- .../suggestion-targets.actions.ts | 8 +++ .../suggestion-targets.effects.ts | 19 +++++-- .../process-overview-table.component.html | 2 +- .../auth-nav-menu.component.html | 2 +- ...m-withdrawn-reinstate-modal.component.html | 2 +- .../password/log-in-password.component.ts | 8 ++- .../section-duplicates.component.html | 2 +- .../section-coar-notify.component.html | 4 +- .../suggestions-page.component.html | 2 +- src/environments/environment.test.ts | 52 ++++++++++--------- .../dspace/app/header/header.component.html | 4 +- 24 files changed, 82 insertions(+), 58 deletions(-) diff --git a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.ts b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.ts index 51aaa08957..cae913ecfd 100644 --- a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.ts +++ b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.ts @@ -261,8 +261,7 @@ export class LdnServiceFormComponent implements OnInit, OnDestroy { const servicesToUse = this.ldnService.notifyServiceInboundPatterns; servicesToUse.forEach((patternObj: NotifyServicePattern) => { - let patternFormGroup; - patternFormGroup = this.initializeInboundPatternFormGroup(); + const patternFormGroup = this.initializeInboundPatternFormGroup(); const newPatternObjWithLabel = Object.assign(new NotifyServicePattern(), { ...patternObj, patternLabel: this.translateService.instant('ldn-service.form.pattern.' + patternObj?.pattern + '.label'), diff --git a/src/app/admin/admin-reports/filters-section/filters-section.component.spec.ts b/src/app/admin/admin-reports/filters-section/filters-section.component.spec.ts index 918ddff1c9..6b8b069f93 100644 --- a/src/app/admin/admin-reports/filters-section/filters-section.component.spec.ts +++ b/src/app/admin/admin-reports/filters-section/filters-section.component.spec.ts @@ -45,7 +45,7 @@ describe('FiltersComponent', () => { fixture.detectChanges(); })); - const isOneSelected = (values: {}): boolean => { + const isOneSelected = (values: any): boolean => { let oneSelected = false; let allFilters = FiltersComponent.FILTERS; for (let i = 0; !oneSelected && i < allFilters.length; i++) { @@ -58,7 +58,7 @@ describe('FiltersComponent', () => { return oneSelected; }; - const isAllSelected = (values: {}): boolean => { + const isAllSelected = (values: any): boolean => { let allSelected = true; let allFilters = FiltersComponent.FILTERS; for (let i = 0; allSelected && i < allFilters.length; i++) { diff --git a/src/app/admin/admin-reports/filters-section/filters-section.component.ts b/src/app/admin/admin-reports/filters-section/filters-section.component.ts index b678cd4800..a739d849f8 100644 --- a/src/app/admin/admin-reports/filters-section/filters-section.component.ts +++ b/src/app/admin/admin-reports/filters-section/filters-section.component.ts @@ -111,7 +111,7 @@ export class FiltersComponent { return undefined; } - static toQueryString(filters: Object): string { + static toQueryString(filters: { [key: string]: any }): string { let params = ''; let first = true; for (const key in filters) { diff --git a/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.html b/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.html index 52ef06206f..7678d8baa1 100644 --- a/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.html +++ b/src/app/browse-by/browse-by-metadata/browse-by-metadata.component.html @@ -1,6 +1,6 @@