ESLint: fix dangling commas

This commit is contained in:
Yury Bondarenko
2023-06-27 16:23:06 +02:00
parent 725dbc3743
commit 917c36dbe7
1789 changed files with 12452 additions and 12452 deletions

View File

@@ -24,7 +24,7 @@ export interface ComColPageNavOption {
@Component({
selector: 'ds-comcol-page-browse-by',
styleUrls: ['./comcol-page-browse-by.component.scss'],
templateUrl: './comcol-page-browse-by.component.html'
templateUrl: './comcol-page-browse-by.component.html',
})
export class ComcolPageBrowseByComponent implements OnInit {
/**
@@ -40,7 +40,7 @@ export class ComcolPageBrowseByComponent implements OnInit {
constructor(
private route: ActivatedRoute,
private router: Router,
private browseService: BrowseService
private browseService: BrowseService,
) {
}
@@ -54,27 +54,27 @@ export class ComcolPageBrowseByComponent implements OnInit {
id: config.id,
label: `browse.comcol.by.${config.id}`,
routerLink: `/browse/${config.id}`,
params: { scope: this.id }
params: { scope: this.id },
}));
if (this.contentType === 'collection') {
this.allOptions = [{
id: this.id,
label: 'collection.page.browse.recent.head',
routerLink: getCollectionPageRoute(this.id)
routerLink: getCollectionPageRoute(this.id),
}, ...this.allOptions];
} else if (this.contentType === 'community') {
this.allOptions = [{
id: this.id,
label: 'community.all-lists.head',
routerLink: getCommunityPageRoute(this.id)
routerLink: getCommunityPageRoute(this.id),
}, ...this.allOptions];
}
}
});
this.currentOptionId$ = this.route.params.pipe(
map((params: Params) => params.id)
map((params: Params) => params.id),
);
}