chore(ui): clear eslint empty-function bucket

- Frontend lifecycle cleanup:
  - remove empty `ngOnInit` stubs and redundant `OnInit` implementations from components that already initialize through signals or effects
  - drop related unused injections that only supported those empty hooks
- No-op handling:
  - replace empty catch and callback blocks with explicit no-op expressions or early returns so the existing behavior stays unchanged while satisfying lint
  - keep silent failure paths silent where the UI intentionally ignores those errors today
- Validation:
  - ran `just ui lint` and cleared the empty lifecycle, empty function, and `no-empty` bucket; the command still fails on the remaining ESLint backlog
  - ran `just ui check`; deps and typecheck pass, and the remaining failure is the outstanding ESLint backlog
This commit is contained in:
James Cox
2026-04-22 17:26:47 -04:00
committed by Zach Yale
parent 0d6f83bed0
commit 5dfd1e18d9
13 changed files with 20 additions and 58 deletions
@@ -1,4 +1,4 @@
import {Component, DestroyRef, effect, EventEmitter, inject, Input, OnInit, Output} from '@angular/core';
import {Component, effect, EventEmitter, inject, Input, Output} from '@angular/core';
import {FormGroup, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {Button} from 'primeng/button';
import {NgClass} from '@angular/common';
@@ -41,13 +41,12 @@ import {TranslocoDirective, TranslocoService} from '@jsverse/transloco';
templateUrl: './bookdrop-file-metadata-picker.component.html',
styleUrl: './bookdrop-file-metadata-picker.component.scss'
})
export class BookdropFileMetadataPickerComponent implements OnInit {
export class BookdropFileMetadataPickerComponent {
private readonly confirmationService = inject(ConfirmationService);
private readonly metadataUtils = inject(MetadataUtilsService);
protected readonly urlHelper = inject(UrlHelperService);
private readonly appSettingsService = inject(AppSettingsService);
private readonly destroyRef = inject(DestroyRef);
private readonly t = inject(TranslocoService);
@Input() fetchedMetadata!: BookMetadata;
@@ -85,9 +84,6 @@ export class BookdropFileMetadataPickerComponent implements OnInit {
}
});
ngOnInit(): void {
}
copyMissing(): void {
this.metadataUtils.copyMissingFields(
this.fetchedMetadata,