lint: migrate prettier to oxfmt (#20783)
Most changes are `implements` being unwrapped this is not a oxfmt regression Prettier in 3.7 (we're on 3.1) changed this behaviour prettier blog [post](https://prettier.io/blog/2025/11/27/3.7.0#change-18094) This unifies our linting tooling --------- Co-authored-by: github-actions <github-actions@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+1
-3
@@ -18,9 +18,7 @@ import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standa
|
||||
key: `workflow.createMany`,
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowCreateManyPostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowCreateManyPostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly globalWorkspaceOrmManager: GlobalWorkspaceOrmManager,
|
||||
private readonly recordPositionService: RecordPositionService,
|
||||
|
||||
+1
-3
@@ -7,9 +7,7 @@ import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standa
|
||||
import { assertWorkflowStatusesNotSetOrEmpty } from 'src/modules/workflow/common/utils/assert-workflow-statuses-not-set-or-empty';
|
||||
|
||||
@WorkspaceQueryHook(`workflow.createMany`)
|
||||
export class WorkflowCreateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowCreateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -18,9 +18,7 @@ import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standa
|
||||
key: `workflow.createOne`,
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowCreateOnePostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowCreateOnePostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly globalWorkspaceOrmManager: GlobalWorkspaceOrmManager,
|
||||
private readonly recordPositionService: RecordPositionService,
|
||||
|
||||
+1
-3
@@ -7,9 +7,7 @@ import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standa
|
||||
import { assertWorkflowStatusesNotSetOrEmpty } from 'src/modules/workflow/common/utils/assert-workflow-statuses-not-set-or-empty';
|
||||
|
||||
@WorkspaceQueryHook(`workflow.createOne`)
|
||||
export class WorkflowCreateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowCreateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -13,9 +13,7 @@ import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace
|
||||
key: `workflow.deleteMany`,
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowDeleteManyPostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowDeleteManyPostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -13,9 +13,7 @@ import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace
|
||||
key: `workflow.deleteOne`,
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowDeleteOnePostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowDeleteOnePostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import { WorkflowCommonWorkspaceService } from 'src/modules/workflow/common/work
|
||||
import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace/workspace.exception';
|
||||
|
||||
@WorkspaceQueryHook('workflow.destroyMany')
|
||||
export class WorkflowDestroyManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowDestroyManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import { WorkflowCommonWorkspaceService } from 'src/modules/workflow/common/work
|
||||
import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace/workspace.exception';
|
||||
|
||||
@WorkspaceQueryHook('workflow.destroyOne')
|
||||
export class WorkflowDestroyOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowDestroyOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -13,9 +13,7 @@ import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace
|
||||
key: 'workflow.restoreMany',
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowRestoreManyPostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowRestoreManyPostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -13,9 +13,7 @@ import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace
|
||||
key: 'workflow.restoreOne',
|
||||
type: WorkspaceQueryHookType.POST_HOOK,
|
||||
})
|
||||
export class WorkflowRestoreOnePostQueryHook
|
||||
implements WorkspacePostQueryHookInstance
|
||||
{
|
||||
export class WorkflowRestoreOnePostQueryHook implements WorkspacePostQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowCommonWorkspaceService: WorkflowCommonWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.createMany`)
|
||||
export class WorkflowRunCreateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunCreateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<CreateManyResolverArgs<WorkflowRunWorkspaceEntity>> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.createOne`)
|
||||
export class WorkflowRunCreateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunCreateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<CreateOneResolverArgs<WorkflowRunWorkspaceEntity>> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.deleteMany`)
|
||||
export class WorkflowRunDeleteManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunDeleteManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<DeleteManyResolverArgs<WorkflowRunWorkspaceEntity>> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -8,9 +8,7 @@ import {
|
||||
} from 'src/modules/workflow/common/exceptions/workflow-query-validation.exception';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.deleteOne`)
|
||||
export class WorkflowRunDeleteOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunDeleteOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<DeleteOneResolverArgs> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.updateMany`)
|
||||
export class WorkflowRunUpdateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunUpdateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<UpdateManyResolverArgs<WorkflowRunWorkspaceEntity>> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -10,9 +10,7 @@ import {
|
||||
import { type WorkflowRunWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-run.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowRun.updateOne`)
|
||||
export class WorkflowRunUpdateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowRunUpdateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflow.updateMany`)
|
||||
export class WorkflowUpdateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowUpdateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<UpdateManyResolverArgs<WorkflowWorkspaceEntity>> {
|
||||
throw new WorkflowQueryValidationException(
|
||||
'Method not allowed.',
|
||||
|
||||
+1
-3
@@ -7,9 +7,7 @@ import { type WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standa
|
||||
import { assertWorkflowStatusesNotSet } from 'src/modules/workflow/common/utils/assert-workflow-statuses-not-set';
|
||||
|
||||
@WorkspaceQueryHook(`workflow.updateOne`)
|
||||
export class WorkflowUpdateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowUpdateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -10,9 +10,7 @@ import {
|
||||
import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.createMany`)
|
||||
export class WorkflowVersionCreateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionCreateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -10,9 +10,7 @@ import {
|
||||
import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.createOne`)
|
||||
export class WorkflowVersionCreateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionCreateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(
|
||||
_authContext: WorkspaceAuthContext,
|
||||
_objectName: string,
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.deleteMany`)
|
||||
export class WorkflowVersionDeleteManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionDeleteManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<
|
||||
DeleteManyResolverArgs<WorkflowVersionWorkspaceEntity>
|
||||
> {
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import { WorkflowVersionValidationWorkspaceService } from 'src/modules/workflow/
|
||||
import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace/workspace.exception';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.deleteOne`)
|
||||
export class WorkflowVersionDeleteOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionDeleteOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowVersionValidationWorkspaceService: WorkflowVersionValidationWorkspaceService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import {
|
||||
import { type WorkflowVersionWorkspaceEntity } from 'src/modules/workflow/common/standard-objects/workflow-version.workspace-entity';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.updateMany`)
|
||||
export class WorkflowVersionUpdateManyPreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionUpdateManyPreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
async execute(): Promise<
|
||||
UpdateManyResolverArgs<WorkflowVersionWorkspaceEntity>
|
||||
> {
|
||||
|
||||
+1
-3
@@ -10,9 +10,7 @@ import { WorkflowVersionValidationWorkspaceService } from 'src/modules/workflow/
|
||||
import { WorkspaceNotFoundDefaultError } from 'src/engine/core-modules/workspace/workspace.exception';
|
||||
|
||||
@WorkspaceQueryHook(`workflowVersion.updateOne`)
|
||||
export class WorkflowVersionUpdateOnePreQueryHook
|
||||
implements WorkspacePreQueryHookInstance
|
||||
{
|
||||
export class WorkflowVersionUpdateOnePreQueryHook implements WorkspacePreQueryHookInstance {
|
||||
constructor(
|
||||
private readonly workflowVersionValidationWorkspaceService: WorkflowVersionValidationWorkspaceService,
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user