Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Sep 19, 2024
1 parent 0bfa921 commit b259cfb
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ npm i use-antd-resizable-header
### Antd Table

```tsx
import { Table, type TableColumnsType } from 'antd'
import { useMemo } from 'react'
import { Table, type TableColumnsType } from 'antd'
import { type ResizableColumnsType, useAntdResizableHeader } from 'use-antd-resizable-header'


Expand Down Expand Up @@ -93,8 +93,8 @@ function App() {
### ProTable

```tsx
import { type ProColumns, ProTable } from '@ant-design/pro-components'
import { useMemo } from 'react'
import { type ProColumns, ProTable } from '@ant-design/pro-components'

type Columns = ResizableColumnsType<ProColumns[]>

Expand Down
2 changes: 1 addition & 1 deletion __tests__/core.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Table } from 'antd'
import { type FC } from 'react'
import { Table } from 'antd'
import { describe, expect, it } from 'vitest'
import useAntdResizableHeader from '../src'
import { renderHook } from './test-utils'
Expand Down
2 changes: 1 addition & 1 deletion playground/app/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { startTransition } from 'react'
import ReactDOM from 'react-dom/client'
import { createHashRouter, RouterProvider } from 'react-router-dom'
import ReactDOM from 'react-dom/client'
import { routes } from 'virtual:remix-flat-routes'
import './index.css'

Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/$.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useIsomorphicLayoutEffect } from 'ahooks'
import { useNavigate } from 'react-router-dom'
import { useIsomorphicLayoutEffect } from 'ahooks'

export default function NotFound() {
const navigate = useNavigate()
Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Space } from 'antd'
import { NavLink, Outlet } from 'react-router-dom'
import { Button, Space } from 'antd'

export default function () {
return (
Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/basic/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Table, type TableColumnsType, Tag } from 'antd'
import { useMemo, useState } from 'react'
import { Button, Table, type TableColumnsType, Tag } from 'antd'
import { type ResizableColumnsType, useAntdResizableHeader } from 'use-antd-resizable-header'

interface DataType {
Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/fixed/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { TableColumnsType } from 'antd'
import { Table } from 'antd'
import React from 'react'
import { Table } from 'antd'
import { type ResizableColumnsType, useAntdResizableHeader } from 'use-antd-resizable-header'
import styles from './index.module.css'

Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/header-group/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { TableColumnsType } from 'antd'
import { Table } from 'antd'
import React from 'react'
import { Table } from 'antd'
import { type ResizableColumnsType, useAntdResizableHeader } from 'use-antd-resizable-header'

interface DataType {
Expand Down
2 changes: 1 addition & 1 deletion playground/app/routes/_layout+/pro-table-basic/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ActionType, ColumnsState, ProColumns } from '@ant-design/pro-components'
import { useRef, useState } from 'react'
import { EllipsisOutlined, PlusOutlined } from '@ant-design/icons'
import { ProTable, TableDropdown } from '@ant-design/pro-components'
import { usePrevious, useUpdateEffect } from 'ahooks'
import { Button, Dropdown, Space, Tag } from 'antd'
import { isEqual } from 'lodash-es'
import { useRef, useState } from 'react'
import request from 'umi-request'
import { type ResizableColumnsType, useAntdResizableHeader } from 'use-antd-resizable-header'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDebounceFn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debounce from 'lodash.debounce'
import { useEffect, useRef } from 'react'
import debounce from 'lodash.debounce'
import { useCreation } from './useCreation'

interface Options {
Expand Down

0 comments on commit b259cfb

Please sign in to comment.