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
-6
@@ -1,4 +1,4 @@
|
||||
import {Component, DestroyRef, effect, inject, OnInit} from '@angular/core';
|
||||
import {Component, effect, inject} from '@angular/core';
|
||||
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||
import {TableModule} from 'primeng/table';
|
||||
import {InputText} from 'primeng/inputtext';
|
||||
@@ -27,7 +27,7 @@ import {TranslocoDirective, TranslocoService} from '@jsverse/transloco';
|
||||
templateUrl: './metadata-provider-settings.component.html',
|
||||
styleUrl: './metadata-provider-settings.component.scss'
|
||||
})
|
||||
export class MetadataProviderSettingsComponent implements OnInit {
|
||||
export class MetadataProviderSettingsComponent {
|
||||
|
||||
amazonDomains = [
|
||||
{label: 'amazon.com', value: 'com'},
|
||||
@@ -99,7 +99,6 @@ export class MetadataProviderSettingsComponent implements OnInit {
|
||||
|
||||
private appSettingsService = inject(AppSettingsService);
|
||||
private messageService = inject(MessageService);
|
||||
private destroyRef = inject(DestroyRef);
|
||||
private t = inject(TranslocoService);
|
||||
|
||||
private readonly syncSettingsEffect = effect(() => {
|
||||
@@ -109,9 +108,6 @@ export class MetadataProviderSettingsComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
private applySettings(settings: NonNullable<ReturnType<typeof this.appSettingsService.appSettings>>): void {
|
||||
const metadataProviderSettings = settings.metadataProviderSettings;
|
||||
this.amazonEnabled = metadataProviderSettings?.amazon?.enabled ?? false;
|
||||
|
||||
Reference in New Issue
Block a user