chore: upgrade to eslint9 (#9163)

This commit is contained in:
Brooooooklyn
2024-12-14 10:29:04 +00:00
parent f49bef4915
commit aaaea8918f
37 changed files with 681 additions and 736 deletions
@@ -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';