style: enable import-x/no-duplicates (#6279)

This commit is contained in:
EYHN
2024-03-25 03:55:32 +00:00
parent 7ce2bfbf0b
commit f2adbdaba4
342 changed files with 881 additions and 1033 deletions

View File

@@ -1,22 +1,21 @@
import {
AddPageButton,
AppSidebar,
AppSidebarFallback,
appSidebarOpenAtom,
SidebarSwitch,
} from '@affine/core/components/app-sidebar';
import { AddPageButton } from '@affine/core/components/app-sidebar';
import { CategoryDivider } from '@affine/core/components/app-sidebar';
import { navHeaderStyle } from '@affine/core/components/app-sidebar';
import { MenuLinkItem } from '@affine/core/components/app-sidebar';
import { QuickSearchInput } from '@affine/core/components/app-sidebar';
import {
CategoryDivider,
MenuLinkItem,
navHeaderStyle,
QuickSearchInput,
SidebarContainer,
SidebarScrollableContainer,
SidebarSwitch,
} from '@affine/core/components/app-sidebar';
import { DeleteTemporarilyIcon, SettingsIcon } from '@blocksuite/icons';
import type { Meta, StoryFn } from '@storybook/react';
import { useAtom } from 'jotai';
import { type PropsWithChildren, useState } from 'react';
import type { PropsWithChildren } from 'react';
import { useState } from 'react';
import { MemoryRouter } from 'react-router-dom';
export default {

View File

@@ -1,7 +1,5 @@
import {
type AddPageButtonProps,
AppUpdaterButton,
} from '@affine/core/components/app-sidebar';
import type { AddPageButtonProps } from '@affine/core/components/app-sidebar';
import { AppUpdaterButton } from '@affine/core/components/app-sidebar';
import type { Meta, StoryFn } from '@storybook/react';
import type { PropsWithChildren } from 'react';

View File

@@ -1,7 +1,6 @@
import { BlockSuiteEditor } from '@affine/core/components/blocksuite/block-suite-editor';
import { AffineSchemas } from '@blocksuite/blocks/schemas';
import { DocCollection } from '@blocksuite/store';
import { Schema } from '@blocksuite/store';
import { DocCollection, Schema } from '@blocksuite/store';
import type { StoryFn } from '@storybook/react';
import { initEmptyPage } from '@toeverything/infra';

View File

@@ -3,12 +3,12 @@ import { ImagePreviewModal } from '@affine/core/components/image-preview';
import type { Meta } from '@storybook/react';
import type { Doc } from '@toeverything/infra';
import {
initEmptyPage,
PageManager,
ServiceProviderContext,
useService,
Workspace,
} from '@toeverything/infra';
import { initEmptyPage } from '@toeverything/infra';
import { useEffect, useState } from 'react';
import { createPortal } from 'react-dom';

View File

@@ -1,8 +1,7 @@
/* deepscan-disable USELESS_ARROW_FUNC_BIND */
import { toast } from '@affine/component';
import { ImportPage } from '@affine/component/import-page';
import type { StoryFn } from '@storybook/react';
import type { Meta } from '@storybook/react';
import type { Meta, StoryFn } from '@storybook/react';
export default {
title: 'AFFiNE/ImportPage',

View File

@@ -1,7 +1,6 @@
import { PagePropertiesTable } from '@affine/core/components/affine/page-properties';
import { AffineSchemas } from '@blocksuite/blocks/schemas';
import { DocCollection } from '@blocksuite/store';
import { Schema } from '@blocksuite/store';
import { DocCollection, Schema } from '@blocksuite/store';
import type { StoryFn } from '@storybook/react';
import { initEmptyPage } from '@toeverything/infra';

View File

@@ -1,17 +1,19 @@
import { toast } from '@affine/component';
import type {
ListItem,
ListProps,
PageListItemProps,
PageOperationCellProps,
PageTagsProps,
} from '@affine/core/components/page-list';
import {
FloatingToolbar,
List,
type ListItem,
type ListProps,
ListScrollContainer,
NewPageButton,
PageListItem,
type PageListItemProps,
PageOperationCell,
type PageOperationCellProps,
PageTags,
type PageTagsProps,
} from '@affine/core/components/page-list';
import { topLevelRoutes } from '@affine/core/router';
import { AffineSchemas } from '@blocksuite/blocks/schemas';

View File

@@ -2,12 +2,10 @@ import { toast } from '@affine/component';
import { PublicLinkDisableModal } from '@affine/component/disable-public-link';
import { ShareMenu } from '@affine/core/components/affine/share-page-modal/share-menu';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { type Doc } from '@blocksuite/store';
import type { Doc } from '@blocksuite/store';
import { expect } from '@storybook/jest';
import type { Meta, StoryFn } from '@storybook/react';
import { Workspace } from '@toeverything/infra';
import { initEmptyPage } from '@toeverything/infra';
import { useService } from '@toeverything/infra';
import { initEmptyPage, useService, Workspace } from '@toeverything/infra';
import { nanoid } from 'nanoid';
import { useEffect, useState } from 'react';

View File

@@ -1,8 +1,7 @@
import type { WorkspaceListProps } from '@affine/component/workspace-list';
import { WorkspaceList } from '@affine/component/workspace-list';
import type { Meta } from '@storybook/react';
import { WorkspaceManager } from '@toeverything/infra';
import { useLiveData, useService } from '@toeverything/infra';
import { useLiveData, useService, WorkspaceManager } from '@toeverything/infra';
export default {
title: 'AFFiNE/WorkspaceList',