mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-07 10:11:59 +00:00
refactor: upgrade typescript-eslint and start the stylistic migration
This commit is contained in:
@@ -49,7 +49,7 @@ export async function gatherRouteInformation(path: string): Promise<RouteWithMet
|
||||
instantiatedRoute.errors = await Promise.all(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
instantiatedRoute.errorNames.map(async (error: any) =>
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
||||
Object.assign((await project.instantiateDefinitionByName(error.name)) as object, {
|
||||
name: error.name,
|
||||
}),
|
||||
|
||||
@@ -30,7 +30,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