Skip to content

Commit 20c31c4

Browse files
committed
style: fix prettier formatting issues
1 parent 28fe0eb commit 20c31c4

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/App.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class CheckboxWidget extends WidgetType {
172172
toDOM() {
173173
const wrap = document.createElement('span')
174174
wrap.className = 'cm-checkbox-widget' + (this.checked ? ' cm-checkbox-checked' : '')
175-
175+
176176
if (this.checked) {
177177
wrap.innerHTML = `<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>`
178178
} else {
@@ -186,7 +186,7 @@ class CheckboxWidget extends WidgetType {
186186
const to = this.pos + (this.checked ? 8 : 6) // length of "/checked" or "/check"
187187
const insert = this.checked ? '/check' : '/checked'
188188
this.view.dispatch({
189-
changes: { from, to, insert }
189+
changes: { from, to, insert },
190190
})
191191
}
192192

@@ -492,14 +492,14 @@ const hideMarkdownPlugin = ViewPlugin.fromClass(
492492
}
493493

494494
if (isChecked) {
495-
const line = view.state.doc.lineAt(start)
496-
if (line.to > end) {
497-
decos.push({
498-
from: end,
499-
to: line.to,
500-
deco: Decoration.mark({ class: 'cm-checked-line-text' })
501-
})
502-
}
495+
const line = view.state.doc.lineAt(start)
496+
if (line.to > end) {
497+
decos.push({
498+
from: end,
499+
to: line.to,
500+
deco: Decoration.mark({ class: 'cm-checked-line-text' }),
501+
})
502+
}
503503
}
504504
}
505505
} // end of visibleRanges iteration

0 commit comments

Comments
 (0)