move eslint comment

This commit is contained in:
Mads Rasmussen
2023-02-15 12:38:46 +01:00
parent 79b82da42e
commit d86f18f6eb

View File

@@ -7,8 +7,8 @@ function deepFreeze<T>(inObj: T): T {
Object.freeze(inObj);
Object.getOwnPropertyNames(inObj)?.forEach(function (prop) {
// eslint-disable-next-line no-prototype-builtins
if (
// eslint-disable-next-line no-prototype-builtins
(inObj as any).hasOwnProperty(prop) &&
(inObj as any)[prop] != null &&
typeof (inObj as any)[prop] === 'object' &&