chore(ui): clear eslint mechanical style bucket

Replace loose template null checks with strict null and undefined comparisons and convert the remaining simple index loops to for-of iteration.

Keep behavior intact while clearing the low-risk mechanical lint backlog in templates and chart helpers.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:48 -04:00
committed by Zach Yale
parent 18784fd12d
commit ea15719b6c
7 changed files with 20 additions and 21 deletions
@@ -22,7 +22,7 @@
{{ displayFormat }}
</div>
}
@if (!book.seriesCount && book.metadata?.seriesNumber != null) {
@if (!book.seriesCount && book.metadata?.seriesNumber !== null && book.metadata?.seriesNumber !== undefined) {
<div class="series-number-overlay">
#{{ book.metadata?.seriesNumber }}
</div>
@@ -93,7 +93,7 @@
stars="5"
[style.--p-rating-icon-active-color]="getStarColor(metadata[col.field])"
></p-rating>
@if (metadata[col.field] != null) {
@if (metadata[col.field] !== null && metadata[col.field] !== undefined) {
<span>({{ metadata[col.field]?.toFixed(1) }})</span>
}
</span>