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:
+7
-7
@@ -82,14 +82,14 @@ export class MetadataSearcherComponent implements OnInit, OnDestroy, OnChanges {
|
||||
this.syncFormFromState();
|
||||
});
|
||||
|
||||
providerCounts: Map<string, number> = new Map();
|
||||
providerLoading: Map<string, boolean> = new Map();
|
||||
selectedProviderFilters: Set<string> = new Set(['all']);
|
||||
providerCounts = new Map<string, number>();
|
||||
providerLoading = new Map<string, boolean>();
|
||||
selectedProviderFilters = new Set<string>(['all']);
|
||||
filteredMetadata: BookMetadata[] = [];
|
||||
providerFilterOptions: Array<{ label: string; value: string }> = [];
|
||||
providerFilterOptions: { label: string; value: string }[] = [];
|
||||
|
||||
private metadataByProvider: Map<string, BookMetadata[]> = new Map();
|
||||
private providerCompletionStatus: Map<string, boolean> = new Map();
|
||||
private metadataByProvider = new Map<string, BookMetadata[]>();
|
||||
private providerCompletionStatus = new Map<string, boolean>();
|
||||
private pendingAutoSearch = false;
|
||||
private providerInitialized = false;
|
||||
|
||||
@@ -363,7 +363,7 @@ export class MetadataSearcherComponent implements OnInit, OnDestroy, OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
getProviderTabs(): Array<{ provider: string; count: number }> {
|
||||
getProviderTabs(): { provider: string; count: number }[] {
|
||||
return Array.from(this.providerCounts.entries()).map(([provider, count]) => ({
|
||||
provider: provider.charAt(0).toUpperCase() + provider.slice(1),
|
||||
count
|
||||
|
||||
Reference in New Issue
Block a user