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,5 +1,5 @@
|
||||
import {DecimalPipe} from '@angular/common';
|
||||
import {Component, effect, inject, Input, OnDestroy, OnInit} from '@angular/core';
|
||||
import {Component, effect, inject, Input, OnDestroy} from '@angular/core';
|
||||
import {Button} from 'primeng/button';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {TranslocoDirective} from '@jsverse/transloco';
|
||||
@@ -26,7 +26,7 @@ import {themes} from '../../../readers/ebook-reader/state/themes.constant';
|
||||
templateUrl: './epub-reader-preferences-component.html',
|
||||
styleUrl: './epub-reader-preferences-component.scss'
|
||||
})
|
||||
export class EpubReaderPreferencesComponent implements OnInit, OnDestroy {
|
||||
export class EpubReaderPreferencesComponent implements OnDestroy {
|
||||
|
||||
@Input() userSettings!: UserSettings;
|
||||
|
||||
@@ -59,9 +59,6 @@ export class EpubReaderPreferencesComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
});
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.destroy$.next();
|
||||
this.destroy$.complete();
|
||||
|
||||
Reference in New Issue
Block a user