fix: lint error

This commit is contained in:
QiShaoXuan
2022-08-25 10:51:27 +08:00
parent 2e2d0b121b
commit 03c01985c2
19 changed files with 34 additions and 44 deletions
@@ -26,7 +26,7 @@ export class BulletBlock extends BaseView {
}
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -43,7 +43,7 @@ export class BulletBlock extends BaseView {
const childrenBlockInfos = (
await Promise.all(
children.map(childElement =>
this.html2block2({
this.html2block({
editor,
element: childElement,
})
@@ -27,7 +27,7 @@ export class CodeBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -13,7 +13,7 @@ export class DividerBlock extends BaseView {
type = Protocol.Block.Type.divider;
View = DividerView;
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -15,7 +15,7 @@ export class ImageBlock extends BaseView {
View = ImageView;
// TODO: needs to download the image and then upload it to get a new link and then assign it
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -28,7 +28,7 @@ export class NumberedBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -40,7 +40,7 @@ export class NumberedBlock extends BaseView {
const childrenBlockInfos = (
await Promise.all(
children.map(childElement =>
this.html2block2({
this.html2block({
editor,
element: childElement,
})
@@ -30,7 +30,7 @@ export class QuoteBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -68,7 +68,7 @@ export class CalloutBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -27,7 +27,7 @@ export class TextBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -67,7 +67,7 @@ export class Heading1Block extends BaseView {
}
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -100,7 +100,7 @@ export class Heading2Block extends BaseView {
}
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -134,7 +134,7 @@ export class Heading3Block extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -28,7 +28,7 @@ export class TodoBlock extends BaseView {
return block;
}
override async html2block2({
override async html2block({
element,
editor,
}: {
@@ -45,7 +45,7 @@ export class TodoBlock extends BaseView {
const childrenBlockInfos = (
await Promise.all(
children.map(childElement =>
this.html2block2({
this.html2block({
editor,
element: childElement,
})