mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
fix lint errors
This commit is contained in:
@@ -5,7 +5,7 @@ import CodeMirror from 'codemirror'
|
|||||||
import 'codemirror-mode-elixir'
|
import 'codemirror-mode-elixir'
|
||||||
import attachmentManagement from 'browser/main/lib/dataApi/attachmentManagement'
|
import attachmentManagement from 'browser/main/lib/dataApi/attachmentManagement'
|
||||||
import convertModeName from 'browser/lib/convertModeName'
|
import convertModeName from 'browser/lib/convertModeName'
|
||||||
import { options, TableEditor } from '@susisu/mte-kernel'
|
import { options, TableEditor, Alignment } from '@susisu/mte-kernel'
|
||||||
import TextEditorInterface from 'browser/lib/TextEditorInterface'
|
import TextEditorInterface from 'browser/lib/TextEditorInterface'
|
||||||
import eventEmitter from 'browser/main/lib/eventEmitter'
|
import eventEmitter from 'browser/main/lib/eventEmitter'
|
||||||
import iconv from 'iconv-lite'
|
import iconv from 'iconv-lite'
|
||||||
|
|||||||
@@ -47,8 +47,7 @@ export default class TextEditorInterface {
|
|||||||
{ line: lastRow, ch: lastLine.length },
|
{ line: lastRow, ch: lastLine.length },
|
||||||
{ line: lastRow, ch: lastLine.length }
|
{ line: lastRow, ch: lastLine.length }
|
||||||
)
|
)
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this.doc.replaceRange(
|
this.doc.replaceRange(
|
||||||
line + '\n',
|
line + '\n',
|
||||||
{ line: row, ch: 0 },
|
{ line: row, ch: 0 },
|
||||||
@@ -68,8 +67,7 @@ export default class TextEditorInterface {
|
|||||||
{ line: lastRow - 1, ch: preLastLine.length },
|
{ line: lastRow - 1, ch: preLastLine.length },
|
||||||
{ line: lastRow, ch: lastLine.length }
|
{ line: lastRow, ch: lastLine.length }
|
||||||
)
|
)
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
const lastLine = this.getLine(lastRow)
|
const lastLine = this.getLine(lastRow)
|
||||||
this.doc.replaceRange(
|
this.doc.replaceRange(
|
||||||
'',
|
'',
|
||||||
@@ -77,8 +75,7 @@ export default class TextEditorInterface {
|
|||||||
{ line: lastRow, ch: lastLine.length }
|
{ line: lastRow, ch: lastLine.length }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this.doc.replaceRange(
|
this.doc.replaceRange(
|
||||||
'',
|
'',
|
||||||
{ line: row, ch: 0 },
|
{ line: row, ch: 0 },
|
||||||
@@ -96,8 +93,7 @@ export default class TextEditorInterface {
|
|||||||
{ line: startRow, ch: 0 },
|
{ line: startRow, ch: 0 },
|
||||||
{ line: lastRow, ch: lastLine.length }
|
{ line: lastRow, ch: lastLine.length }
|
||||||
)
|
)
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this.doc.replaceRange(
|
this.doc.replaceRange(
|
||||||
lines.join('\n') + '\n',
|
lines.join('\n') + '\n',
|
||||||
{ line: startRow, ch: 0 },
|
{ line: startRow, ch: 0 },
|
||||||
|
|||||||
Reference in New Issue
Block a user