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
@@ -26,7 +26,7 @@ import { addSiblingAttachmentBlocks } from './utils.js';
export class AttachmentBlockService extends BlockService {
static override readonly flavour = AttachmentBlockSchema.model.flavour;
private _fileDropOptions: FileDropOptions = {
private readonly _fileDropOptions: FileDropOptions = {
flavour: this.flavour,
onDrop: async ({ files, targetModel, place, point }) => {
if (!files.length) return false;
@@ -67,7 +67,7 @@ export class AttachmentEmbedService extends Extension {
return this.configs.values();
}
constructor(private configs: Map<string, AttachmentEmbedConfig>) {
constructor(private readonly configs: Map<string, AttachmentEmbedConfig>) {
super();
}