disable rule because changed code isn't compatible with current build target

This commit is contained in:
einhornimmond 2025-12-04 13:07:05 +01:00
parent 07a80b2df7
commit 05e275edcf
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
"noGlobalAssign": "error", "noGlobalAssign": "error",
"noImportAssign": "error", "noImportAssign": "error",
"noMisleadingCharacterClass": "error", "noMisleadingCharacterClass": "error",
"noPrototypeBuiltins": "error", "noPrototypeBuiltins": "off",
"noRedeclare": "error", "noRedeclare": "error",
"noSelfCompare": "error", "noSelfCompare": "error",
"noShadowRestrictedNames": "error", "noShadowRestrictedNames": "error",

View File

@ -19,7 +19,7 @@ export const decimalSeparatorByLanguage = (a: Decimal, language: string): string
export function resetInterface<T extends Record<string, any>>(obj: T): T { export function resetInterface<T extends Record<string, any>>(obj: T): T {
// Iterate over all properties of the object // Iterate over all properties of the object
for (const key in obj) { for (const key in obj) {
if (Object.hasOwn(obj, key)) { if (Object.prototype.hasOwnProperty.call(obj, key)) {
// Set all optional properties to undefined // Set all optional properties to undefined
obj[key] = undefined as T[Extract<keyof T, string>] obj[key] = undefined as T[Extract<keyof T, string>]