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

@ -4,7 +4,8 @@ import type { FC } from 'react'
import {
RiArrowDownSLine,
} from '@remixicon/react'
import React, { useState } from 'react'
import * as React from 'react'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'
import { cn } from '@/utils/classnames'

View File

@ -1,4 +1,5 @@
import React, { memo, useCallback } from 'react'
import * as React from 'react'
import { memo, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import { FileUploaderInAttachmentWrapper } from '@/app/components/base/file-uploader'
import Input from '@/app/components/base/input'

View File

@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import InputsFormContent from '@/app/components/base/chat/chat-with-history/inputs-form/content'

View File

@ -8,7 +8,8 @@ import {
RiUnpinLine,
} from '@remixicon/react'
import { useBoolean } from 'ahooks'
import React, { useEffect, useRef, useState } from 'react'
import * as React from 'react'
import { useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import ActionButton, { ActionButtonState } from '@/app/components/base/action-button'
import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem'

View File

@ -1,6 +1,7 @@
'use client'
import type { FC } from 'react'
import React, { useState } from 'react'
import * as React from 'react'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import Input from '@/app/components/base/input'

View File

@ -1,5 +1,6 @@
import type { FC } from 'react'
import React, { useState } from 'react'
import * as React from 'react'
import { useState } from 'react'
import {
PortalToFollowElem,
PortalToFollowElemContent,

View File

@ -1,6 +1,6 @@
'use client'
import type { FC } from 'react'
import React from 'react'
import * as React from 'react'
import { cn } from '@/utils/classnames'
import s from './style.module.css'

View File

@ -1,7 +1,7 @@
'use client'
import type { FC } from 'react'
import type { ThoughtItem, ToolInfoInThought } from '../type'
import React from 'react'
import * as React from 'react'
import ToolDetail from '@/app/components/base/chat/chat/answer/tool-detail'
export type IThoughtProps = {

View File

@ -1,7 +1,8 @@
import type { FC } from 'react'
import type { Theme } from '../theme/theme-context'
import { RiCollapseDiagonal2Line, RiExpandDiagonal2Line, RiResetLeftLine } from '@remixicon/react'
import React, { useCallback, useEffect, useState } from 'react'
import * as React from 'react'
import { useCallback, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import ActionButton from '@/app/components/base/action-button'
import ViewFormDropdown from '@/app/components/base/chat/embedded-chatbot/inputs-form/view-form-dropdown'

View File

@ -1,4 +1,5 @@
import React, { memo, useCallback } from 'react'
import * as React from 'react'
import { memo, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import { FileUploaderInAttachmentWrapper } from '@/app/components/base/file-uploader'
import Input from '@/app/components/base/input'

View File

@ -1,4 +1,4 @@
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import InputsFormContent from '@/app/components/base/chat/embedded-chatbot/inputs-form/content'