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
@@ -128,9 +128,9 @@ import type {
export class CommandManager extends LifeCycleWatcher {
static override readonly key = 'commandManager';
private _commands = new Map<string, Command>();
private readonly _commands = new Map<string, Command>();
private _createChain = (
private readonly _createChain = (
methods: Record<BlockSuite.CommandName, unknown>,
_cmds: Command[]
): Chain => {
@@ -239,7 +239,7 @@ export class CommandManager extends LifeCycleWatcher {
} as Chain;
};
private _getCommandCtx = (): InitCommandCtx => {
private readonly _getCommandCtx = (): InitCommandCtx => {
return {
std: this.std,
};