refactor: upgrade typescript-eslint and start the stylistic migration

This commit is contained in:
Rainer Killinger
2026-10-01 16:44:51 +02:00
parent 444557b725
commit c5e60ab9e5
20 changed files with 352 additions and 234 deletions
+1 -1
View File
@@ -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,
}),
+1 -1
View File
@@ -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) {