A continuation of HomeBox the inventory and organization system built for the Home User
Fix frontend CI (#1028)
Alan Mooiman38a987676e18
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 96522090..2dad0e2a 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -22,6 +22,7 @@"editor.defaultFormatter": "dbaeumer.vscode-eslint"},"eslint.format.enable": true,+ "eslint.validate": ["javascript", "typescript", "vue"],"eslint.useFlatConfig": true,"css.validate": false,"tailwindCSS.includeLanguages": {diff --git a/frontend/composables/utils.ts b/frontend/composables/utils.tsindex 6b4cfbfc..5b030164 100644--- a/frontend/composables/utils.ts+++ b/frontend/composables/utils.ts@@ -1,3 +1,5 @@+import type { CurrenciesCurrency } from "~/lib/api/types/data-contracts";+export function validDate(dt: Date | string | null | undefined): boolean {if (!dt) {return false;@@ -42,7 +44,7 @@ function clampDecimals(currency: string, decimals: number): number {}// Type guard to validate currency response shape with strict validation-function isValidCurrencyItem(item: any): item is { code: string; decimals: number } {+function isValidCurrencyItem(item: CurrenciesCurrency) {if (typeof item !== "object" ||item === null ||