From 395efbd6fbc356d0fb18074ed893f9bd9bfbf6e0 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Thu, 17 Jul 2025 22:43:00 +0900 Subject: [PATCH] npm run eslint-fix-only-show-error --- .../base/auto-height-textarea/common.tsx | 4 +-- web/app/components/workflow/index.tsx | 4 +-- .../workflow/store/workflow/index.ts | 30 +++++++++---------- web/app/signin/oneMoreStep.tsx | 4 +-- web/hooks/use-metadata.ts | 4 +-- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/web/app/components/base/auto-height-textarea/common.tsx b/web/app/components/base/auto-height-textarea/common.tsx index 841bfdd729..eb0275cfcd 100644 --- a/web/app/components/base/auto-height-textarea/common.tsx +++ b/web/app/components/base/auto-height-textarea/common.tsx @@ -1,8 +1,8 @@ import { useEffect, useRef } from 'react' import cn from '@/utils/classnames' -type AutoHeightTextareaProps = - & React.DetailedHTMLProps, HTMLTextAreaElement> +type AutoHeightTextareaProps + = & React.DetailedHTMLProps, HTMLTextAreaElement> & { outerClassName?: string } const AutoHeightTextarea = ( diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index 8ea861ebb4..511c94aec9 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -393,8 +393,8 @@ export const WorkflowWithInnerContext = memo(({ ) }) -type WorkflowWithDefaultContextProps = - Pick +type WorkflowWithDefaultContextProps + = Pick & { children: React.ReactNode } diff --git a/web/app/components/workflow/store/workflow/index.ts b/web/app/components/workflow/store/workflow/index.ts index fe17cc21e0..c3a6428585 100644 --- a/web/app/components/workflow/store/workflow/index.ts +++ b/web/app/components/workflow/store/workflow/index.ts @@ -36,21 +36,21 @@ import type { LayoutSliceShape } from './layout-slice' import { createLayoutSlice } from './layout-slice' import type { WorkflowSliceShape as WorkflowAppSliceShape } from '@/app/components/workflow-app/store/workflow/workflow-slice' -export type Shape = - ChatVariableSliceShape & - EnvVariableSliceShape & - FormSliceShape & - HelpLineSliceShape & - HistorySliceShape & - NodeSliceShape & - PanelSliceShape & - ToolSliceShape & - VersionSliceShape & - WorkflowDraftSliceShape & - WorkflowSliceShape & - InspectVarsSliceShape & - LayoutSliceShape & - WorkflowAppSliceShape +export type Shape + = ChatVariableSliceShape + & EnvVariableSliceShape + & FormSliceShape + & HelpLineSliceShape + & HistorySliceShape + & NodeSliceShape + & PanelSliceShape + & ToolSliceShape + & VersionSliceShape + & WorkflowDraftSliceShape + & WorkflowSliceShape + & InspectVarsSliceShape + & LayoutSliceShape + & WorkflowAppSliceShape type CreateWorkflowStoreParams = { injectWorkflowStoreSliceFn?: StateCreator diff --git a/web/app/signin/oneMoreStep.tsx b/web/app/signin/oneMoreStep.tsx index 3569cf96d9..657455b90d 100644 --- a/web/app/signin/oneMoreStep.tsx +++ b/web/app/signin/oneMoreStep.tsx @@ -21,8 +21,8 @@ type IState = { timezone: string } -type IAction = - | { type: 'failed', payload: null } +type IAction + = | { type: 'failed', payload: null } | { type: 'invitation_code', value: string } | { type: 'interface_language', value: string } | { type: 'timezone', value: string } diff --git a/web/hooks/use-metadata.ts b/web/hooks/use-metadata.ts index ee02b312f0..fa11095e91 100644 --- a/web/hooks/use-metadata.ts +++ b/web/hooks/use-metadata.ts @@ -7,8 +7,8 @@ import useTimestamp from '@/hooks/use-timestamp' export type inputType = 'input' | 'select' | 'textarea' export type metadataType = DocType | 'originInfo' | 'technicalParameters' -type MetadataMap = - Record< +type MetadataMap + = Record< metadataType, { text: string