Eslint migration 4 (#13773)

A new attempt to migrate!
This commit is contained in:
Félix Malfait
2025-08-08 16:21:57 +02:00
committed by GitHub
parent 81012ab1fb
commit 5fae14377a
36 changed files with 1206 additions and 510 deletions
@@ -1,7 +1,8 @@
import { type FactoryProvider, type ModuleMetadata } from '@nestjs/common';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface TwentyORMOptions {}
export interface TwentyORMOptions {
[key: string]: unknown;
}
export type TwentyORMModuleAsyncOptions = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -44,7 +44,7 @@ export interface WorkspaceDynamicRelationMetadataArgs {
/**
* Class to which relation is applied.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -13,7 +13,7 @@ export interface WorkspaceEntityMetadataArgs {
* Function target is a table defined in the class.
* String target is a table defined in a json schema.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -6,7 +6,7 @@ export interface WorkspaceExtendedEntityMetadataArgs {
* Function target is a table defined in the class.
* String target is a table defined in a json schema.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -16,7 +16,7 @@ export interface WorkspaceFieldMetadataArgs {
/**
* Class to which field is applied.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -6,7 +6,7 @@ export interface WorkspaceIndexMetadataArgs {
/**
* Class to which index is applied.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/*
@@ -2,7 +2,7 @@ export interface WorkspaceJoinColumnsMetadataArgs {
/**
* Class to which relation is applied.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -15,7 +15,7 @@ export interface WorkspaceRelationMetadataArgs {
/**
* Class to which relation is applied.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
readonly target: Function;
/**
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
import { type WorkspaceDynamicRelationMetadataArgs } from 'src/engine/twenty-orm/interfaces/workspace-dynamic-relation-metadata-args.interface';
import { type WorkspaceEntityMetadataArgs } from 'src/engine/twenty-orm/interfaces/workspace-entity-metadata-args.interface';