mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-07 18:22:04 +00:00
refactor: upgrade typescript-eslint and start the stylistic migration
This commit is contained in:
@@ -54,7 +54,7 @@ export function mapNotNil<T, S>(array: readonly T[], transform: (element: T) =>
|
||||
/**
|
||||
* Deletes all properties with the value 'undefined', [] or {}
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
||||
export function cleanupEmpty<T extends object>(object: T): T {
|
||||
const out = {} as T;
|
||||
for (const key in object) {
|
||||
|
||||
Reference in New Issue
Block a user