mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
chore: upgrade to eslint9 (#9163)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
SubscriptionPlan,
|
||||
type SubscriptionQuery,
|
||||
SubscriptionRecurring,
|
||||
SubscriptionVariant,
|
||||
SubscriptionPlan,
|
||||
} from '@affine/graphql';
|
||||
import {
|
||||
backoffRetry,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
import type { DocMode } from '@blocksuite/affine/blocks';
|
||||
import type { WorkspaceMetadata } from '@toeverything/infra';
|
||||
|
||||
|
||||
@@ -712,7 +712,6 @@ const ExplorerFolderNodeFolder = ({
|
||||
}, [additionalOperations, folderOperations]);
|
||||
|
||||
const childrenOperations = useCallback(
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
(type: string, node: FolderNode) => {
|
||||
if (type === 'doc' || type === 'collection' || type === 'tag') {
|
||||
return [
|
||||
|
||||
@@ -14,7 +14,6 @@ export class FolderNode extends Entity<{
|
||||
|
||||
info$ = LiveData.from<{
|
||||
data: string;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
type: (string & {}) | 'folder' | 'doc' | 'tag' | 'collection';
|
||||
index: string;
|
||||
id: string;
|
||||
|
||||
@@ -10,8 +10,10 @@ import {
|
||||
type BlobStorage,
|
||||
catchErrorInto,
|
||||
type DocStorage,
|
||||
effect,
|
||||
exhaustMapSwitchUntilChanged,
|
||||
fromPromise,
|
||||
getAFFiNEWorkspaceSchema,
|
||||
type GlobalState,
|
||||
LiveData,
|
||||
ObjectPool,
|
||||
@@ -24,8 +26,6 @@ import {
|
||||
type WorkspaceFlavoursProvider,
|
||||
type WorkspaceMetadata,
|
||||
type WorkspaceProfileInfo,
|
||||
effect,
|
||||
getAFFiNEWorkspaceSchema,
|
||||
} from '@toeverything/infra';
|
||||
import { isEqual } from 'lodash-es';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
Reference in New Issue
Block a user