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

@ -2,7 +2,8 @@
import type { FC } from 'react'
import type { GitHubItemAndMarketPlaceDependency, Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import React, { useEffect } from 'react'
import * as React from 'react'
import { useEffect } from 'react'
import { useUploadGitHub } from '@/service/use-plugins'
import Loading from '../../base/loading'
import { pluginManifestToCardPluginProps } from '../../utils'

View File

@ -1,7 +1,7 @@
'use client'
import type { FC } from 'react'
import type { Plugin, VersionProps } from '../../../types'
import React from 'react'
import * as React from 'react'
import Checkbox from '@/app/components/base/checkbox'
import { MARKETPLACE_API_PREFIX } from '@/config'
import Card from '../../../card'

View File

@ -2,7 +2,7 @@
import type { FC } from 'react'
import type { Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import React from 'react'
import * as React from 'react'
import Loading from '../../base/loading'
import LoadedItem from './loaded-item'

View File

@ -2,7 +2,7 @@
import type { FC } from 'react'
import type { PackageDependency, Plugin } from '../../../types'
import type { VersionProps } from '@/app/components/plugins/types'
import React from 'react'
import * as React from 'react'
import LoadingError from '../../base/loading-error'
import { pluginManifestToCardPluginProps } from '../../utils'
import LoadedItem from './loaded-item'