chore: fix eslint in blocksuite (#9232)

This commit is contained in:
Saul-Mirone
2024-12-20 16:48:10 +00:00
parent bfcc53dc1f
commit 3a82da0e5b
269 changed files with 935 additions and 842 deletions
@@ -60,10 +60,10 @@ export function onlyContainImgElement(
export class Clipboard extends LifeCycleWatcher {
static override readonly key = 'clipboard';
private _adapterMap: AdapterMap = new Map();
private readonly _adapterMap: AdapterMap = new Map();
// Need to be cloned to a map for later use
private _getDataByType = (clipboardData: DataTransfer) => {
private readonly _getDataByType = (clipboardData: DataTransfer) => {
const data = new Map<string, string | File[]>();
for (const type of clipboardData.types) {
if (type === 'Files') {
@@ -105,7 +105,7 @@ export class Clipboard extends LifeCycleWatcher {
};
};
private _getSnapshotByPriority = async (
private readonly _getSnapshotByPriority = async (
getItem: (type: string) => string | File[],
doc: Doc,
parent?: string,