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

View File

@@ -24,9 +24,12 @@ export type BlockQueryDataSourceConfig = {
// @ts-expect-error FIXME: ts error
export class BlockQueryDataSource extends DataSourceBase {
private columnMetaMap = new Map<string, PropertyMetaConfig<any, any, any>>();
private readonly columnMetaMap = new Map<
string,
PropertyMetaConfig<any, any, any>
>();
private meta: BlockMeta;
private readonly meta: BlockMeta;
blockMap = new Map<string, Block>();
@@ -60,8 +63,8 @@ export class BlockQueryDataSource extends DataSourceBase {
}
constructor(
private host: EditorHost,
private block: DataViewBlockModel,
private readonly host: EditorHost,
private readonly block: DataViewBlockModel,
config: BlockQueryDataSourceConfig
) {
super();

View File

@@ -92,7 +92,7 @@ export class DataViewBlockComponent extends CaptionedBlockComponent<DataViewBloc
}
`;
private _clickDatabaseOps = (e: MouseEvent) => {
private readonly _clickDatabaseOps = (e: MouseEvent) => {
popMenu(popupTargetFromElement(e.currentTarget as HTMLElement), {
options: {
items: [
@@ -136,7 +136,7 @@ export class DataViewBlockComponent extends CaptionedBlockComponent<DataViewBloc
private _dataSource?: DataSource;
private dataView = new DataView();
private readonly dataView = new DataView();
_bindHotkey: DataViewProps['bindHotkey'] = hotkeys => {
return {