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
@@ -1,4 +1,4 @@
import { type BlobStorage } from '@toeverything/infra';
import type { BlobStorage } from '@toeverything/infra';
import { createStore, del, get, keys, set } from 'idb-keyval';
import { bufferToBlob } from '../utils/buffer-to-blob';
@@ -1,6 +1,6 @@
import { apis } from '@affine/electron-api';
import { assertExists } from '@blocksuite/global/utils';
import { type BlobStorage } from '@toeverything/infra';
import type { BlobStorage } from '@toeverything/infra';
import { bufferToBlob } from '../utils/buffer-to-blob';
@@ -1,4 +1,4 @@
import { type BlobStorage } from '@toeverything/infra';
import type { BlobStorage } from '@toeverything/infra';
export const predefinedStaticFiles = [
'029uztLz2CzJezK7UUhrbGiWUdZ0J7NVs_qR6RDsvb8=',
@@ -1,10 +1,6 @@
import type { ByteKV, ByteKVBehavior, DocStorage } from '@toeverything/infra';
import {
type DBSchema,
type IDBPDatabase,
type IDBPObjectStore,
openDB,
} from 'idb';
import type { DBSchema, IDBPDatabase, IDBPObjectStore } from 'idb';
import { openDB } from 'idb';
import { mergeUpdates } from 'yjs';
import { BroadcastChannelDocEventBus } from './doc-broadcast-channel';
@@ -1,17 +1,8 @@
import { apis } from '@affine/electron-api';
import {
AsyncLock,
type ByteKV,
type ByteKVBehavior,
type DocStorage,
MemoryDocEventBus,
} from '@toeverything/infra';
import {
type DBSchema,
type IDBPDatabase,
type IDBPObjectStore,
openDB,
} from 'idb';
import type { ByteKV, ByteKVBehavior, DocStorage } from '@toeverything/infra';
import { AsyncLock, MemoryDocEventBus } from '@toeverything/infra';
import type { DBSchema, IDBPDatabase, IDBPObjectStore } from 'idb';
import { openDB } from 'idb';
export class SqliteDocStorage implements DocStorage {
constructor(private readonly workspaceId: string) {}
@@ -1,11 +1,11 @@
import { apis } from '@affine/electron-api';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { DocCollection } from '@blocksuite/store';
import type { WorkspaceListProvider } from '@toeverything/infra';
import {
type BlobStorage,
type WorkspaceInfo,
type WorkspaceMetadata,
import type {
BlobStorage,
WorkspaceInfo,
WorkspaceListProvider,
WorkspaceMetadata,
} from '@toeverything/infra';
import { globalBlockSuiteSchema } from '@toeverything/infra';
import { difference } from 'lodash-es';