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:
+1
-1
@@ -128,7 +128,7 @@ export class ReadingSurvivalChartComponent {
|
||||
|
||||
const completionRate = Math.round(survivalValues[survivalValues.length - 1]);
|
||||
|
||||
let medianIdx = survivalValues.findIndex(v => v < 50);
|
||||
const medianIdx = survivalValues.findIndex(v => v < 50);
|
||||
let medianDropout = '';
|
||||
if (medianIdx === -1) {
|
||||
medianDropout = '100%+';
|
||||
|
||||
+1
-1
@@ -98,7 +98,7 @@ export class UserChartConfigService {
|
||||
}
|
||||
|
||||
try {
|
||||
const savedCharts = JSON.parse(savedConfig) as Array<Partial<UserChartConfig>>;
|
||||
const savedCharts = JSON.parse(savedConfig) as Partial<UserChartConfig>[];
|
||||
const savedChartsById = new Map(savedCharts.map(chart => [chart.id, chart]));
|
||||
|
||||
return this.getDefaultCharts()
|
||||
|
||||
Reference in New Issue
Block a user