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) {
@@ -33,6 +33,7 @@ export type SCBulkAddRequest = SCThings;
* Response to a request to add a thing to a bulk
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCBulkAddResponse {}
/**
@@ -26,12 +26,14 @@ import {SCAbstractRoute, SCRouteHttpVerbs} from '../route.js';
* Request to change the bulk state to done (close the bulk process)
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCBulkDoneRequest {}
/**
* Response to a request to change the state of a bulk to done
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCBulkDoneResponse {}
/**
@@ -37,6 +37,7 @@ export interface SCFeedbackRequest extends SCMessage {
* A response to a feedback request
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCFeedbackResponse {}
/**
@@ -28,6 +28,7 @@ import {SCAbstractRoute, SCRouteHttpVerbs} from '../route.js';
* Index request
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCIndexRequest {}
/**
@@ -50,6 +50,7 @@ export interface SCRatingRequest {
* A response to a rating request
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCRatingResponse {}
/**
@@ -33,6 +33,7 @@ export type SCThingUpdateRequest = SCThings;
* Response for an entity update request
* @validatable
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCThingUpdateResponse {}
/**
+1
View File
@@ -57,6 +57,7 @@ export interface SCIdCard extends SCIdCardWithoutReferences, SCThing {
/**
* Translatable properties of a message
*/
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface SCIdCardTranslatableProperties extends SCThingTranslatableProperties {}
/**
+1 -1
View File
@@ -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) {