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:
+2
-5
@@ -1,4 +1,4 @@
|
||||
import {Component, effect, inject, OnInit} from '@angular/core';
|
||||
import {Component, effect, inject} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {AccordionModule} from 'primeng/accordion';
|
||||
@@ -23,7 +23,7 @@ import {SidecarService} from '../../metadata/service/sidecar.service';
|
||||
templateUrl: './library-metadata-settings.component.html',
|
||||
styleUrls: ['./library-metadata-settings.component.scss']
|
||||
})
|
||||
export class LibraryMetadataSettingsComponent implements OnInit {
|
||||
export class LibraryMetadataSettingsComponent {
|
||||
private libraryService = inject(LibraryService);
|
||||
private appSettingsService = inject(AppSettingsService);
|
||||
private messageService = inject(MessageService);
|
||||
@@ -63,9 +63,6 @@ export class LibraryMetadataSettingsComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
onPanelChange(event: unknown) {
|
||||
this.activePanel = typeof event === 'number' ? event : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user