chore: lint

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-10-28 13:52:09 +08:00
parent 7670d58aaa
commit ad0c8830a6
73 changed files with 439 additions and 436 deletions

View File

@@ -10,14 +10,14 @@
"peerDependencies": {
"react": "^19.1.1"
},
"dependencies": {
"jotai": "^2.15.0",
"usehooks-ts": "^3.1.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"dependencies": {
"jotai": "^2.15.0",
"usehooks-ts": "^3.1.0"
}
}

View File

@@ -3,7 +3,6 @@ import { useLayoutEffect, useRef } from 'react'
export const useRefValue = <S>(
value: S,
): Readonly<{
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
current: S extends Function ? S : Readonly<S>
}> => {
const ref = useRef<S>(value)

View File

@@ -1,10 +1,8 @@
import { clsxm, Spring } from '@afilmory/utils'
import type { HTMLMotionProps } from 'motion/react'
import { m } from 'motion/react'
import type { FC, PropsWithChildren } from 'react'
import { clsxm } from '@afilmory/utils'
import { Spring } from '@afilmory/utils'
export const GlassButton: FC<HTMLMotionProps<'button'> & PropsWithChildren> = (
props,
) => {

View File

@@ -1,6 +1,5 @@
import * as React from 'react'
import { clsxm } from '@afilmory/utils'
import * as React from 'react'
export interface CheckboxProps {
checked?: boolean

View File

@@ -1,12 +1,11 @@
'use client'
import { clsxm } from '@afilmory/utils'
import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
import type { HTMLMotionProps } from 'motion/react'
import { m as motion } from 'motion/react'
import * as React from 'react'
import { clsxm } from '@afilmory/utils'
type CheckboxProps = React.ComponentProps<typeof CheckboxPrimitive.Root> &
HTMLMotionProps<'button'> & {
indeterminate?: boolean

View File

@@ -1,8 +1,7 @@
import { clsxm } from '@afilmory/utils'
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
import * as React from 'react'
import { clsxm } from '@afilmory/utils'
const DropdownMenu: typeof DropdownMenuPrimitive.Root = (props) => {
return <DropdownMenuPrimitive.Root {...props} />
}

View File

@@ -1,8 +1,7 @@
import { useCallback, useState } from 'react'
import { useInView } from 'react-intersection-observer'
import { Thumbhash } from '@afilmory/ui'
import { clsxm } from '@afilmory/utils'
import { useCallback, useState } from 'react'
import { useInView } from 'react-intersection-observer'
export interface LazyImageProps {
src: string

View File

@@ -1,6 +1,5 @@
import { clsxm, Spring } from '@afilmory/utils'
import * as DialogPrimitive from '@radix-ui/react-dialog'
import { useAtomValue, useStore } from 'jotai'
import { useAtomValue } from 'jotai'
import { AnimatePresence } from 'motion/react'
import { useEffect, useMemo, useState } from 'react'
import { useEventCallback } from 'usehooks-ts'

View File

@@ -1,3 +1,3 @@
export * from './ScrollArea'
export * from './ctx'
export * from './hooks'
export * from './ScrollArea'

View File

@@ -1,10 +1,8 @@
import { clsxm, Spring } from '@afilmory/utils'
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
import { m } from 'motion/react'
import * as React from 'react'
import { clsxm } from '@afilmory/utils'
import { Spring } from '@afilmory/utils'
import { tooltipStyle } from './styles'
const TooltipProvider = TooltipPrimitive.Provider

View File

@@ -1,8 +1,7 @@
import { clsxm } from '@afilmory/utils'
import type { PropsWithChildren } from 'react'
import { useEffect, useState } from 'react'
import { clsxm } from '@afilmory/utils'
import {
Tooltip,
TooltipContent,