Skip to content

Commit 3b48d9a

Browse files
committed
Manually fix lint issues
1 parent 2b540cd commit 3b48d9a

File tree

24 files changed

+82
-58
lines changed

24 files changed

+82
-58
lines changed

src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ export class LdnServiceFormComponent implements OnInit, OnDestroy {
261261
const servicesToUse = this.ldnService.notifyServiceInboundPatterns;
262262

263263
servicesToUse.forEach((patternObj: NotifyServicePattern) => {
264-
let patternFormGroup;
265-
patternFormGroup = this.initializeInboundPatternFormGroup();
264+
const patternFormGroup = this.initializeInboundPatternFormGroup();
266265
const newPatternObjWithLabel = Object.assign(new NotifyServicePattern(), {
267266
...patternObj,
268267
patternLabel: this.translateService.instant('ldn-service.form.pattern.' + patternObj?.pattern + '.label'),

src/app/admin/admin-reports/filters-section/filters-section.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('FiltersComponent', () => {
4545
fixture.detectChanges();
4646
}));
4747

48-
const isOneSelected = (values: {}): boolean => {
48+
const isOneSelected = (values: any): boolean => {
4949
let oneSelected = false;
5050
let allFilters = FiltersComponent.FILTERS;
5151
for (let i = 0; !oneSelected && i < allFilters.length; i++) {
@@ -58,7 +58,7 @@ describe('FiltersComponent', () => {
5858
return oneSelected;
5959
};
6060

61-
const isAllSelected = (values: {}): boolean => {
61+
const isAllSelected = (values: any): boolean => {
6262
let allSelected = true;
6363
let allFilters = FiltersComponent.FILTERS;
6464
for (let i = 0; allSelected && i < allFilters.length; i++) {

src/app/admin/admin-reports/filters-section/filters-section.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class FiltersComponent {
111111
return undefined;
112112
}
113113

114-
static toQueryString(filters: Object): string {
114+
static toQueryString(filters: { [key: string]: any }): string {
115115
let params = '';
116116
let first = true;
117117
for (const key in filters) {

src/app/browse-by/browse-by-metadata/browse-by-metadata.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="comcol-page-browse-section">
22
<div class="browse-by-metadata w-100">
3-
<ds-themed-browse-by *ngIf="!(loading$ | async)" class="col-xs-12 w-100"
3+
<ds-themed-browse-by *ngIf="(loading$ | async) === false" class="col-xs-12 w-100"
44
title="{{'browse.title' | translate:{
55
field: 'browse.metadata.' + browseId | translate,
66
startsWith: (startsWith)? ('browse.startsWith' | translate: { startsWith: '&quot;' + startsWith + '&quot;' }) : '',

src/app/community-list-page/community-list/community-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<span class="sr-only">{{ (node.isExpanded ? 'communityList.collapse' : 'communityList.expand') | translate:{ name: dsoNameService.getName(node.payload) } }}</span>
3434
</button>
3535
<!--Don't render the button when non-expandable otherwise it's still accessible, instead render this placeholder-->
36-
<span *ngIf="!(hasChild(null, node) | async)" aria-hidden="true" class="btn btn-default invisible">
36+
<span *ngIf="(hasChild(null, node) | async) === false" aria-hidden="true" class="btn btn-default invisible">
3737
<span class="fa fa-chevron-right"></span>
3838
</span>
3939
<div class="d-flex flex-row">

src/app/core/data/processes/process-data.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
describe('ProcessDataService', () => {
4242
let testScheduler;
4343

44-
const mockTimer = (fn: () => {}, interval: number) => {
44+
const mockTimer = (fn: () => any, interval: number) => {
4545
fn();
4646
return 555;
4747
};

src/app/core/notifications/source/suggestion-source-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HttpClient } from '@angular/common/http';
22
import { Injectable } from '@angular/core';
33
import { Store } from '@ngrx/store';
4-
import { Observable } from 'rxjs/internal/Observable';
4+
import { Observable } from 'rxjs';
55

66
import { NotificationsService } from '../../../shared/notifications/notifications.service';
77
import { FollowLinkConfig } from '../../../shared/utils/follow-link-config.model';

src/app/core/notifications/target/suggestion-target-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HttpClient } from '@angular/common/http';
22
import { Injectable } from '@angular/core';
33
import { Store } from '@ngrx/store';
4-
import { Observable } from 'rxjs/internal/Observable';
4+
import { Observable } from 'rxjs';
55

66
import { NotificationsService } from '../../../shared/notifications/notifications.service';
77
import { FollowLinkConfig } from '../../../shared/utils/follow-link-config.model';

src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[ngClass]="{ 'ds-warning': mdValue.reordered || mdValue.change === DsoEditMetadataChangeTypeEnum.UPDATE, 'ds-danger': mdValue.change === DsoEditMetadataChangeTypeEnum.REMOVE, 'ds-success': mdValue.change === DsoEditMetadataChangeTypeEnum.ADD, 'h-100': isOnlyValue }">
44
<div class="flex-grow-1 ds-flex-cell ds-value-cell d-flex flex-column" *ngVar="(mdRepresentation$ | async) as mdRepresentation" role="cell">
55
<div class="dont-break-out preserve-line-breaks" *ngIf="!mdValue.editing && !mdRepresentation">{{ mdValue.newValue.value }}</div>
6-
<textarea class="form-control" rows="5" *ngIf="mdValue.editing && !mdRepresentation && !(isAuthorityControlled() | async)" [(ngModel)]="mdValue.newValue.value"
6+
<textarea class="form-control" rows="5" *ngIf="mdValue.editing && !mdRepresentation && (isAuthorityControlled() | async) === false" [(ngModel)]="mdValue.newValue.value"
77
[attr.aria-label]="(dsoType + '.edit.metadata.edit.value') | translate"
88
[dsDebounce]="300" (onDebounce)="confirm.emit(false)"></textarea>
99
<ds-dynamic-scrollable-dropdown *ngIf="mdValue.editing && (isScrollableVocabulary() | async)"

src/app/item-page/field-components/metadata-values/metadata-values.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--
44
Choose a template. Priority: markdown, link, browse link.
55
-->
6-
<ng-container *ngTemplateOutlet="(renderMarkdown ? markdown : (hasLink(mdValue) ? (img != null ? linkImg : link) : (hasBrowseDefinition() ? browselink : simple)));
6+
<ng-container *ngTemplateOutlet="(renderMarkdown ? markdown : (hasLink(mdValue) ? (img !== null ? linkImg : link) : (hasBrowseDefinition() ? browselink : simple)));
77
context: {value: mdValue.value, img}">
88
</ng-container>
99
<span class="separator" *ngIf="!last" [innerHTML]="separator"></span>

0 commit comments

Comments
 (0)