From 05e275edcfd616375eb359b1d6ddadb64fe38790 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Thu, 4 Dec 2025 13:07:05 +0100 Subject: [PATCH] disable rule because changed code isn't compatible with current build target --- biome.json | 2 +- core/src/util/utilities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/biome.json b/biome.json index 4f60baebc..19c068854 100644 --- a/biome.json +++ b/biome.json @@ -103,7 +103,7 @@ "noGlobalAssign": "error", "noImportAssign": "error", "noMisleadingCharacterClass": "error", - "noPrototypeBuiltins": "error", + "noPrototypeBuiltins": "off", "noRedeclare": "error", "noSelfCompare": "error", "noShadowRestrictedNames": "error", diff --git a/core/src/util/utilities.ts b/core/src/util/utilities.ts index 7278f5c9e..6c5a0eb93 100644 --- a/core/src/util/utilities.ts +++ b/core/src/util/utilities.ts @@ -19,7 +19,7 @@ export const decimalSeparatorByLanguage = (a: Decimal, language: string): string export function resetInterface>(obj: T): T { // Iterate over all properties of the object for (const key in obj) { - if (Object.hasOwn(obj, key)) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { // Set all optional properties to undefined obj[key] = undefined as T[Extract]