From 1155f5512dca43042d819d72c54aff81ece10f58 Mon Sep 17 00:00:00 2001 From: Jeffrey Fisher Date: Wed, 27 Jan 2021 15:25:17 -0800 Subject: [PATCH] Fix linting errors. Closes #4027 --- electron/createTray.js | 10 +++++----- electron/index.js | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/electron/createTray.js b/electron/createTray.js index 11fe58e84..bc5960a95 100644 --- a/electron/createTray.js +++ b/electron/createTray.js @@ -10,12 +10,12 @@ export default window => { * A maximized window can't be properly * restored when minimized to the taskbar * (it will be restored/showed as unmaximized). - * - * window.isMaximized() will also return + * + * window.isMaximized() will also return * false when minimizing a maximized window. - * - * The safest way to keep track of the - * maximized state using maximize and + * + * The safest way to keep track of the + * maximized state using maximize and * unmaximize events. */ let isWindowMaximized = false; diff --git a/electron/index.js b/electron/index.js index 70d86436a..c3fe1222c 100644 --- a/electron/index.js +++ b/electron/index.js @@ -4,9 +4,9 @@ import '@babel/polyfill'; import SemVer from 'semver'; import https from 'https'; -import { app, dialog, ipcMain, session, shell, ipcRenderer } from 'electron'; +import { app, dialog, ipcMain, session, shell } from 'electron'; import { autoUpdater } from 'electron-updater'; -import { Lbry, LbryFirst } from 'lbry-redux'; +import { Lbry } from 'lbry-redux'; import LbryFirstInstance from './LbryFirstInstance'; import Daemon from './Daemon'; import isDev from 'electron-is-dev'; diff --git a/package.json b/package.json index 47563f10b..0f2244796 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "build": "cross-env NODE_ENV=production yarn compile:electron && electron-builder build", "build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null", "crossenv": "./node_modules/cross-env/dist/bin/cross-env", - "lint": "eslint ui/**/*.{js,jsx} && eslint web/**/*.{js,jsx} && eslint electron/**/*.js && flow", + "lint": "eslint 'ui/**/*.{js,jsx}' && eslint 'web/**/*.{js,jsx}' && eslint 'electron/**/*.js' && flow", "format": "prettier 'src/**/*.{js,jsx,scss,json}' --write", "flow-defs": "flow-typed install", "precommit": "lint-staged",