chore: lint require and how to import react (#30041)

This commit is contained in:
Stephen Zhou
2025-12-23 18:02:10 +08:00
committed by GitHub
parent 72ca3607a3
commit 403adefc07
1078 changed files with 1680 additions and 1216 deletions

View File

@ -6,7 +6,8 @@ import {
} from '@remixicon/react'
import { useBoolean, useHover } from 'ahooks'
import { noop } from 'lodash-es'
import React, { useCallback, useRef } from 'react'
import * as React from 'react'
import { useCallback, useRef } from 'react'
import { useTranslation } from 'react-i18next'
import ConfigVarModal from '@/app/components/app/configuration/config-var/config-modal'
import Badge from '@/app/components/base/badge'

View File

@ -3,7 +3,8 @@ import type { FC } from 'react'
import type { InputVar, MoreInfo } from '@/app/components/workflow/types'
import { RiDraggable } from '@remixicon/react'
import { produce } from 'immer'
import React, { useCallback, useMemo } from 'react'
import * as React from 'react'
import { useCallback, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { ReactSortable } from 'react-sortablejs'
import Toast from '@/app/components/base/toast'

View File

@ -1,7 +1,7 @@
import type { FC } from 'react'
import type { StartNodeType } from './types'
import type { NodeProps } from '@/app/components/workflow/types'
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development'
import InputVarTypeIcon from '../_base/components/input-var-type-icon'

View File

@ -1,7 +1,7 @@
import type { FC } from 'react'
import type { StartNodeType } from './types'
import type { InputVar, NodePanelProps } from '@/app/components/workflow/types'
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import ConfigVarModal from '@/app/components/app/configuration/config-var/config-modal'
import AddButton from '@/app/components/base/button/add-button'