From 2e01c9fb87e08e21aabe01b8bae8ff375900b9e4 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 1 Jul 2020 11:05:41 -0700 Subject: [PATCH] Lint fixes --- main.js | 6 +++--- ts/components/CompositionArea.tsx | 4 +++- ts/util/lint/exceptions.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 93b0e6189..e6f98c9b2 100644 --- a/main.js +++ b/main.js @@ -413,10 +413,10 @@ async function createWindow() { */ if (mainWindow.isFullScreen()) { - mainWindow.once('leave-full-screen', () => mainWindow.hide()) - mainWindow.setFullScreen(false) + mainWindow.once('leave-full-screen', () => mainWindow.hide()); + mainWindow.setFullScreen(false); } else { - mainWindow.hide() + mainWindow.hide(); } // On Mac, or on other platforms when the tray icon is in use, the window diff --git a/ts/components/CompositionArea.tsx b/ts/components/CompositionArea.tsx index 9bc70455e..a867b1efb 100644 --- a/ts/components/CompositionArea.tsx +++ b/ts/components/CompositionArea.tsx @@ -43,7 +43,9 @@ export type Props = Pick< | 'onEditorSizeChange' | 'onEditorStateChange' | 'onTextTooLong' - | 'startingText' | 'clearQuotedMessage' | 'getQuotedMessage' + | 'startingText' + | 'clearQuotedMessage' + | 'getQuotedMessage' > & Pick< EmojiButtonProps, diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index d590b23b4..f864fa540 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -11435,7 +11435,7 @@ "rule": "DOM-innerHTML", "path": "ts/components/CompositionArea.tsx", "line": " el.innerHTML = '';", - "lineNumber": 71, + "lineNumber": 73, "reasonCategory": "usageTrusted", "updated": "2019-12-16T14:36:25.614ZZ", "reasonDetail": "Our code, no user input, only clearing out the dom"