mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -78,9 +78,9 @@ function customizer(_target: unknown, source: unknown) {
|
||||
export class EditPropsStore extends LifeCycleWatcher {
|
||||
static override key = 'EditPropsStore';
|
||||
|
||||
private _disposables = new DisposableGroup();
|
||||
private readonly _disposables = new DisposableGroup();
|
||||
|
||||
private innerProps$: Signal<DeepPartial<LastProps>> = signal({});
|
||||
private readonly innerProps$: Signal<DeepPartial<LastProps>> = signal({});
|
||||
|
||||
lastProps$: Signal<LastProps>;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class EmbedOptionService
|
||||
extends Extension
|
||||
implements EmbedOptionProvider
|
||||
{
|
||||
private _embedBlockRegistry = new Set<EmbedOptions>();
|
||||
private readonly _embedBlockRegistry = new Set<EmbedOptions>();
|
||||
|
||||
getEmbedBlockOptions = (url: string): EmbedOptions | null => {
|
||||
const entries = this._embedBlockRegistry.entries();
|
||||
|
||||
@@ -61,7 +61,7 @@ export class ThemeService extends Extension {
|
||||
return isInsideEdgelessEditor(this.std.host) ? this.edgeless$ : this.app$;
|
||||
}
|
||||
|
||||
constructor(private std: BlockStdScope) {
|
||||
constructor(private readonly std: BlockStdScope) {
|
||||
super();
|
||||
const extension = this.std.getOptional(ThemeExtensionIdentifier);
|
||||
this.app$ = extension?.getAppTheme?.() || getThemeObserver().theme$;
|
||||
@@ -172,7 +172,7 @@ export class ThemeService extends Extension {
|
||||
}
|
||||
|
||||
export class ThemeObserver {
|
||||
private observer: MutationObserver;
|
||||
private readonly observer: MutationObserver;
|
||||
|
||||
theme$ = signal(ColorScheme.Light);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { SpecBuilder } from './spec-builder.js';
|
||||
export class SpecProvider {
|
||||
static instance: SpecProvider;
|
||||
|
||||
private specMap = new Map<string, ExtensionType[]>();
|
||||
private readonly specMap = new Map<string, ExtensionType[]>();
|
||||
|
||||
private constructor() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user