Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Aug 29, 2023
1 parent 8d11b65 commit e2c0279
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions components/table/__tests__/Table.filter.test.tsx
@@ -1,10 +1,10 @@
/* eslint-disable no-unsafe-optional-chaining */
/* eslint-disable react/no-multi-comp */
/* eslint-disable no-unsafe-optional-chaining, react/no-multi-comp, compat/compat */
import React, { useEffect, useState } from 'react';

import type { ColumnGroupType, ColumnType, TableProps } from '..';
import Table from '..';
import { act, fireEvent, render, waitFor } from '../../../tests/utils';
import { resetWarned } from '../../_util/warning';
import { act, fireEvent, render, waitFor } from '../../../tests/utils';
import Button from '../../button';
import ConfigProvider from '../../config-provider';
import Input from '../../input';
Expand Down
4 changes: 3 additions & 1 deletion components/table/__tests__/Table.order.test.tsx
@@ -1,8 +1,10 @@
/* eslint-disable compat/compat */
import React from 'react';

import type { TableProps } from '..';
import Table from '..';
import { render } from '../../../tests/utils';
import { resetWarned } from '../../_util/warning';
import { render } from '../../../tests/utils';

describe('Table.order', () => {
window.requestAnimationFrame = (callback) => window.setTimeout(callback, 16);
Expand Down
4 changes: 3 additions & 1 deletion components/table/__tests__/Table.rowSelection.test.tsx
@@ -1,8 +1,10 @@
/* eslint-disable compat/compat */
import React from 'react';

import type { TableProps } from '..';
import Table from '..';
import { act, fireEvent, render } from '../../../tests/utils';
import { resetWarned } from '../../_util/warning';
import { act, fireEvent, render } from '../../../tests/utils';
import ConfigProvider from '../../config-provider';
import type { TableRowSelection } from '../interface';

Expand Down
6 changes: 4 additions & 2 deletions components/upload/__tests__/upload.test.tsx
@@ -1,13 +1,15 @@
/* eslint-disable compat/compat */
import React, { useEffect, useRef } from 'react';
import { produce } from 'immer';
import { cloneDeep } from 'lodash';
import type { UploadRequestOption } from 'rc-upload/lib/interface';
import React, { useEffect, useRef } from 'react';

import type { RcFile, UploadFile, UploadProps } from '..';
import Upload from '..';
import { resetWarned } from '../../_util/warning';
import mountTest from '../../../tests/shared/mountTest';
import rtlTest from '../../../tests/shared/rtlTest';
import { act, fireEvent, render, waitFakeTimer } from '../../../tests/utils';
import { resetWarned } from '../../_util/warning';
import Form from '../../form';
import { getFileItem, isImageUrl, removeFileItem } from '../utils';
import { setup, teardown } from './mock';
Expand Down
4 changes: 3 additions & 1 deletion components/upload/__tests__/uploadlist.test.tsx
@@ -1,11 +1,13 @@
/* eslint-disable compat/compat */
import React from 'react';

import type { UploadFile, UploadProps } from '..';
import Upload from '..';
import { act, fireEvent, render, waitFakeTimer, waitFor } from '../../../tests/utils';
import type { FormInstance } from '../../form';
import Form from '../../form';
import UploadList from '../UploadList';
import type { UploadListProps, UploadLocale } from '../interface';
import UploadList from '../UploadList';
import { previewImage } from '../utils';
import { setup, teardown } from './mock';
import { errorRequest, successRequest } from './requests';
Expand Down

0 comments on commit e2c0279

Please sign in to comment.