mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
disable rule because changed code isn't compatible with current build target
This commit is contained in:
parent
07a80b2df7
commit
05e275edcf
@ -103,7 +103,7 @@
|
||||
"noGlobalAssign": "error",
|
||||
"noImportAssign": "error",
|
||||
"noMisleadingCharacterClass": "error",
|
||||
"noPrototypeBuiltins": "error",
|
||||
"noPrototypeBuiltins": "off",
|
||||
"noRedeclare": "error",
|
||||
"noSelfCompare": "error",
|
||||
"noShadowRestrictedNames": "error",
|
||||
|
||||
@ -19,7 +19,7 @@ export const decimalSeparatorByLanguage = (a: Decimal, language: string): string
|
||||
export function resetInterface<T extends Record<string, any>>(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<keyof T, string>]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user