1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix lint errors

This commit is contained in:
Baptiste Augrain
2018-08-20 20:29:10 +02:00
parent 657806c8cf
commit 7cf9dda821
4 changed files with 61 additions and 65 deletions

View File

@@ -5,7 +5,7 @@ import CodeMirror from 'codemirror'
import 'codemirror-mode-elixir'
import attachmentManagement from 'browser/main/lib/dataApi/attachmentManagement'
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 eventEmitter from 'browser/main/lib/eventEmitter'
import iconv from 'iconv-lite'

View File

@@ -47,8 +47,7 @@ export default class TextEditorInterface {
{ line: lastRow, ch: lastLine.length },
{ line: lastRow, ch: lastLine.length }
)
}
else {
} else {
this.doc.replaceRange(
line + '\n',
{ line: row, ch: 0 },
@@ -68,8 +67,7 @@ export default class TextEditorInterface {
{ line: lastRow - 1, ch: preLastLine.length },
{ line: lastRow, ch: lastLine.length }
)
}
else {
} else {
const lastLine = this.getLine(lastRow)
this.doc.replaceRange(
'',
@@ -77,8 +75,7 @@ export default class TextEditorInterface {
{ line: lastRow, ch: lastLine.length }
)
}
}
else {
} else {
this.doc.replaceRange(
'',
{ line: row, ch: 0 },
@@ -96,8 +93,7 @@ export default class TextEditorInterface {
{ line: startRow, ch: 0 },
{ line: lastRow, ch: lastLine.length }
)
}
else {
} else {
this.doc.replaceRange(
lines.join('\n') + '\n',
{ line: startRow, ch: 0 },