chore: fix eslint in blocksuite (#9232)

This commit is contained in:
Saul-Mirone committed 2024-12-20 16:48:10 +00:00
1 parent bfcc53dc1f
commit 3a82da0e5b
269 files changed
+935 -842

No files matched your search

@@ -95,7 +95,7 @@ export class NumberCellEditing extends BaseCellRenderer<
}
`;
private _getFormattedString = (value: number) => {
private readonly _getFormattedString = (value: number) => {
const enableNewFormatting =
this.view.featureFlags$.value.enable_number_formatting;
const decimals = this.property.data$.value.decimal ?? 0;
@@ -106,7 +106,7 @@ export class NumberCellEditing extends BaseCellRenderer<
: value.toString();
};
private _keydown = (e: KeyboardEvent) => {
private readonly _keydown = (e: KeyboardEvent) => {
const ctrlKey = IS_MAC ? e.metaKey : e.ctrlKey;
if (e.key.toLowerCase() === 'z' && ctrlKey) {
@@ -121,7 +121,7 @@ export class NumberCellEditing extends BaseCellRenderer<
}
};
private _setValue = (str: string = this._inputEle.value) => {
private readonly _setValue = (str: string = this._inputEle.value) => {
if (!str) {
this.onChange(undefined);
return;