style: remove unused import (#1113)

This commit is contained in:
Himself65 2023-02-17 22:52:14 -06:00 committed by GitHub
parent 6378547a0e
commit 462a859afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 3 additions and 31 deletions

View File

@ -11,6 +11,7 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
@ -39,6 +40,7 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/ban-ts-comment': 0,

View File

@ -5,7 +5,6 @@ import { useTranslation } from '@affine/i18n';
import { CloseIcon } from '@blocksuite/icons';
import router from 'next/router';
import { useCallback, useState } from 'react';
import React from 'react';
import { useGlobalState } from '@/store/app';

View File

@ -5,7 +5,6 @@ import {
LocalWorkspaceIcon as DefaultLocalWorkspaceIcon,
PublishIcon as DefaultPublishIcon,
} from '@blocksuite/icons';
import React from 'react';
// Here are some icons with special color or size
export const JoinedWorkspaceIcon = () => {

View File

@ -1,5 +1,4 @@
import { Editor, EditorProps } from '@blocksuite/react/editor';
import React from 'react';
export type BlockSuiteEditorProps = EditorProps;
export const BlockSuiteEditor = (props: BlockSuiteEditorProps) => {
return <Editor {...props} />;

View File

@ -2,7 +2,7 @@
import { builtInSchemas } from '@blocksuite/blocks/models';
import { Page, Workspace } from '@blocksuite/store';
import { Meta, Story } from '@storybook/react';
import React, { Suspense } from 'react';
import { Suspense } from 'react';
import {
BlockSuiteEditor,

View File

@ -1,7 +1,6 @@
/* deepscan-disable USELESS_ARROW_FUNC_BIND */
import { MigrationError } from '@blocksuite/global/error';
import { Meta, StoryFn } from '@storybook/react';
import React from 'react';
import {
BlockSuiteErrorBoundary,

View File

@ -1,7 +1,6 @@
/* deepscan-disable USELESS_ARROW_FUNC_BIND */
import { Link, Typography } from '@mui/material';
import { Meta, Story } from '@storybook/react';
import React from 'react';
import { Breadcrumbs } from '..';

View File

@ -1,6 +1,5 @@
/* deepscan-disable USELESS_ARROW_FUNC_BIND */
import { Meta, Story } from '@storybook/react';
import React from 'react';
import { Button } from '..';
import { ButtonProps } from '../ui/button/interface';

View File

@ -1,7 +1,6 @@
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
import emotionStyled from '@emotion/styled';
import type { PropsWithChildren } from 'react';
import React from 'react';
import { AffineTheme } from './types';
export { css, keyframes } from '@emotion/react';

View File

@ -1,5 +1,4 @@
import { Children, cloneElement, forwardRef } from 'react';
import React from 'react';
import { ButtonProps } from './interface';
import { Loading } from './Loading';

View File

@ -6,7 +6,6 @@ import {
HTMLAttributes,
ReactElement,
} from 'react';
import React from 'react';
import { StyledIconButton } from './styles';
const SIZE_SMALL = 'small' as const;

View File

@ -1,5 +1,3 @@
import React from 'react';
import { styled } from '../../styles';
import { ButtonProps } from './interface';
import { getButtonColors } from './utils';

View File

@ -1,5 +1,4 @@
import { Children, cloneElement, forwardRef } from 'react';
import React from 'react';
import { ButtonProps } from './interface';
import { StyledTextButton } from './styles';

View File

@ -1,6 +1,5 @@
import { useTranslation } from '@affine/i18n';
import { useState } from 'react';
import React from 'react';
import { Button } from '../button';
import { Modal, ModalCloseButton, ModalProps } from '../modal';

View File

@ -1,5 +1,4 @@
import { CSSProperties } from 'react';
import React from 'react';
import { EmptySVG } from './EmptySVG';
import { StyledEmptyContainer } from './style';

View File

@ -1,5 +1,4 @@
import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
import React from 'react';
export const EmptySVG = (props: SvgIconProps) => {
return (

View File

@ -6,7 +6,6 @@ import {
useEffect,
useState,
} from 'react';
import React from 'react';
import { StyledInput } from './style';
type inputProps = {

View File

@ -1,5 +1,4 @@
import { TooltipProps } from '@mui/material';
import React from 'react';
import { Popper, type PopperProps } from '../popper';
import { StyledMenuWrapper } from './styles';

View File

@ -5,7 +5,6 @@ import {
PropsWithChildren,
ReactElement,
} from 'react';
import React from 'react';
import { StyledArrow, StyledMenuItem } from './styles';
export type IconMenuProps = PropsWithChildren<{

View File

@ -1,6 +1,5 @@
import { ModalUnstyledOwnProps } from '@mui/base/ModalUnstyled';
import Fade from '@mui/material/Fade';
import React from 'react';
import { StyledBackdrop, StyledModal } from './styles';
const Backdrop = ({

View File

@ -1,6 +1,5 @@
import { CloseIcon } from '@blocksuite/icons';
import { HTMLAttributes } from 'react';
import React from 'react';
import { styled } from '../../styles';
import { IconButton, IconButtonProps } from '../button/IconButton';

View File

@ -1,5 +1,4 @@
import { forwardRef } from 'react';
import React from 'react';
import { styled } from '../../styles';
import { PopperArrowProps } from './interface';

View File

@ -9,7 +9,6 @@ import {
useRef,
useState,
} from 'react';
import React from 'react';
import { styled } from '../../styles';
import { PopperProps, VirtualElement } from './interface';

View File

@ -1,5 +1,4 @@
import { Children, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
import React from 'react';
import { StyledTable } from './styles';
const childrenHasEllipsis = (children: ReactNode | ReactNode[]): boolean => {

View File

@ -1,5 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableBody } from './styles';
export const TableBody = ({

View File

@ -1,5 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { TableCellProps } from './interface';
import { StyledTableCell } from './styles';

View File

@ -1,5 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableHead } from './styles';

View File

@ -1,5 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import React from 'react';
import { StyledTableRow } from './styles';
export const TableRow = ({

View File

@ -1,5 +1,4 @@
import type { TooltipProps } from '@mui/material';
import React from 'react';
import { styled } from '../../styles';
import { Popper, type PopperProps } from '../popper';

View File

@ -1,5 +1,3 @@
import React from 'react';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { Logger } from '../src';