style(frontend): apply the first eslint autofix pass
- ESLint autofixes: - apply the safe automatic ESLint rewrites without taking on manual typing, accessibility, or Angular inject migrations - normalize `==` and `!=` comparisons in templates, convert `Array<T>` to `T[]`, and tighten a small set of `let` declarations to `const` - remove `autofocus` attributes that ESLint can rewrite mechanically - Cleanup scope: - keep this pass limited to files changed by `ng lint --fix` so the remaining 702 manual ESLint findings stay isolated for later review - Validation: - `env YARN_ENABLE_GLOBAL_CACHE=0 YARN_CACHE_FOLDER=../.yarn/cache corepack yarn lint:eslint --fix` reduced the remaining ESLint count from 721 to 702 before stopping on non-fixable issues
This commit is contained in:
@@ -19,7 +19,7 @@ interface ViewCallbacks {
|
||||
prev: () => void;
|
||||
next: () => void;
|
||||
getCFI: (index: number, range: Range) => string | null;
|
||||
getContents: () => Array<{ index: number; doc: Document }> | null;
|
||||
getContents: () => { index: number; doc: Document }[] | null;
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
[(ngModel)]="noteContent"
|
||||
[placeholder]="t('notePlaceholder')"
|
||||
rows="6"
|
||||
autofocus
|
||||
|
||||
></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
[placeholder]="t('searchPlaceholder')"
|
||||
[(ngModel)]="searchQuery"
|
||||
(ngModelChange)="onSearchInput($event)"
|
||||
autofocus
|
||||
|
||||
/>
|
||||
@if (searchQuery) {
|
||||
<button class="clear-btn" (click)="clearSearch()" [attr.aria-label]="t('clearSearch')">
|
||||
|
||||
@@ -59,7 +59,7 @@ export class ReaderStateService {
|
||||
readonly state = this._state.asReadonly();
|
||||
|
||||
readonly themes = themes;
|
||||
private readonly _fonts = signal<Array<{ name: string; value: string | null }>>(this.BASE_FONTS);
|
||||
private readonly _fonts = signal<{ name: string; value: string | null }[]>(this.BASE_FONTS);
|
||||
readonly fonts = this._fonts.asReadonly();
|
||||
|
||||
constructor(private bookService: BookService, private userService: UserService) {
|
||||
|
||||
Reference in New Issue
Block a user