Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Nov 3, 2023
1 parent 61048d9 commit cfa36a9
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 77 deletions.
4 changes: 2 additions & 2 deletions packages/react-hook/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @vitest-environment jsdom

import { describe, expect, test } from 'vitest'
import { act, renderHook } from '@testing-library/react'
import { useStrictInput } from '../src/useStrictInput'
import { describe, expect, test } from 'vitest'
import { useControlledState } from '../src/useControlledState'
import { useStrictInput } from '../src/useStrictInput'

describe('condition', () => {
test('test', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hook/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tsupConfig from './tsup.config'
import { build } from '~scripts/build'
import tsupConfig from './tsup.config'

build(tsupConfig)
2 changes: 1 addition & 1 deletion packages/react-hook/scripts/dev.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tsupConfig from './tsup.config'
import { dev } from '~scripts/dev'
import tsupConfig from './tsup.config'

dev(tsupConfig)
146 changes: 73 additions & 73 deletions packages/react-hook/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,84 +52,84 @@
import * as ReactUse from 'react-use'

export {
useRequest,
useDynamicList,
useVirtualList,
useResponsive,
useEventEmitter,
useLocalStorageState,
useSessionStorageState,
useSize,
clearCache,
configResponsive,
useUpdateEffect,
useUpdateLayoutEffect,
createUpdateEffect,
useAntdTable,
useAsyncEffect,
useBoolean,
useToggle,
useDocumentVisibility,
useSelections,
useThrottle,
useThrottleFn,
useThrottleEffect,
useDebounce,
useDebounceFn,
useDebounceEffect,
usePrevious,
useMouse,
useScroll,
useClickAway,
useFullscreen,
useInViewport,
useKeyPress,
useEventListener,
useHover,
useUnmount,
useSet,
useMemoizedFn,
useMap,
useCookieState,
useCountDown,
useCounter,
useCreation,
useDebounce,
useDebounceEffect,
useDebounceFn,
useDeepCompareEffect,
useDeepCompareLayoutEffect,
useDocumentVisibility,
useDrag,
useDrop,
useMount,
useCounter,
useUpdate,
useTextSelection,
useDynamicList,
useEventEmitter,
useEventListener,
useEventTarget,
useExternal,
useFavicon,
useFocusWithin,
useFullscreen,
useFusionTable,
useGetState,
useHistoryTravel,
useCookieState,
useSetState,
useHover,
useInViewport,
useInfiniteScroll,
useInterval,
useWhyDidYouUpdate,
useTitle,
useNetwork,
useTimeout,
useReactive,
useFavicon,
useCountDown,
useWebSocket,
useLockFn,
useUnmountedRef,
useExternal,
useSafeState,
useLatest,
useIsomorphicLayoutEffect,
useDeepCompareEffect,
useDeepCompareLayoutEffect,
useAsyncEffect,
useKeyPress,
useLatest,
useLocalStorageState,
useLockFn,
useLongPress,
useRafState,
useTrackedEffect,
useMap,
useMemoizedFn,
useMount,
useMouse,
useMutationObserver,
useNetwork,
usePagination,
useAntdTable,
useFusionTable,
useInfiniteScroll,
useGetState,
clearCache,
useFocusWithin,
createUpdateEffect,
usePrevious,
useRafInterval,
useRafState,
useRafTimeout,
useReactive,
useRequest,
useResetState,
useMutationObserver,
useResponsive,
useSafeState,
useScroll,
useSelections,
useSessionStorageState,
useSet,
useSetState,
useSize,
useTextSelection,
useThrottle,
useThrottleEffect,
useThrottleFn,
useTimeout,
useTitle,
useToggle,
useTrackedEffect,
useUnmount,
useUnmountedRef,
useUpdate,
useUpdateEffect,
useUpdateLayoutEffect,
useVirtualList,
useWebSocket,
useWhyDidYouUpdate,
} from 'ahooks'

const {
Expand Down Expand Up @@ -177,31 +177,31 @@ export {
useCss,
useCustomCompareEffect,
useDefault,
useEvent,
useError,
useEvent,
useFirstMountState,
useGetSet,
useGetSetState,
useHash,
useHoverDirty,
useIntersection,
useLockBodyScroll,
useMeasure,
usePageLeave,
usePermission,
usePinchZoom,
usePreviousDistinct,
useQueue,
useRaf,
useRafLoop,
useScrollbarWidth,
useScrolling,
useSearchParam,
useStartTyping,
useSpeech,
useSlider,
useScrolling,
useScrollbarWidth,
useSpeech,
useStartTyping,
useWindowScroll,
useWindowSize,
useMeasure,
usePinchZoom,
useFirstMountState,
useHash,
useLockBodyScroll,
}

export * from './useControlledState'
Expand Down

0 comments on commit cfa36a9

Please sign in to comment.