ui_migration lint(fix): changes fixed with lint ecmaversion & es2021

This commit is contained in:
Antonio Anaya 2026-02-15 01:03:29 -06:00
parent 0741e3cf7e
commit ce19ea3fc0
52 changed files with 242 additions and 193 deletions

View file

@ -1,6 +1,5 @@
// Generic functions for formatting
/**
* Format a single number into a human-readable string.
* Uses exponential notation for very large/small numbers.
@ -30,7 +29,7 @@ export function formatNumber(num, maxDigits = 4) {
*/
export function formatValue(value, maxDigits = 4) {
if (Array.isArray(value)) {
const items = value.map(val => formatValue(val, maxDigits));
const items = value.map((val) => formatValue(val, maxDigits));
return `[${items.join(", ")}]`;
}
if (typeof value === "object" && value !== null) {
@ -47,4 +46,4 @@ export function formatValue(value, maxDigits = 4) {
}
// Only if the string will not coerce to a number do we output the value.
return value;
}
}