aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron/ipc-api
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-18 08:18:36 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-18 08:18:36 -0600
commitc49723056acec489765acb54bae3889ac07f25af (patch)
tree58bea705d61a728b060e615ce514b8d4a7936c9e /src/electron/ipc-api
parentfeat: hide all services workspace (#1713) (diff)
downloadferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency - configure `@eslint-react/eslint-plugin` in eslint config - modernize `lint` command in `package.json` - disable or fix various reported lint issues - fix `div` being nested in `p` for settings - replace deprecated `event.keyCode` with `event.key` - update isEscKeyPress method and unit tests which used deprecated `event.keyCode` - allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r--src/electron/ipc-api/autoUpdate.ts1
-rw-r--r--src/electron/ipc-api/index.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts
index 775daf602..44e2a1b19 100644
--- a/src/electron/ipc-api/autoUpdate.ts
+++ b/src/electron/ipc-api/autoUpdate.ts
@@ -1,5 +1,6 @@
1import { BrowserWindow, ipcMain } from 'electron'; 1import { BrowserWindow, ipcMain } from 'electron';
2import { autoUpdater } from 'electron-updater'; 2import { autoUpdater } from 'electron-updater';
3// eslint-disable-next-line import/no-cycle
3import { appEvents } from '../..'; 4import { appEvents } from '../..';
4 5
5const debug = require('../../preload-safe-debug')('Ferdium:ipcApi:autoUpdate'); 6const debug = require('../../preload-safe-debug')('Ferdium:ipcApi:autoUpdate');
diff --git a/src/electron/ipc-api/index.ts b/src/electron/ipc-api/index.ts
index 48c6d142c..83cc5eae2 100644
--- a/src/electron/ipc-api/index.ts
+++ b/src/electron/ipc-api/index.ts
@@ -1,6 +1,7 @@
1import type { BrowserWindow } from 'electron'; 1import type { BrowserWindow } from 'electron';
2import type TrayIcon from '../../lib/Tray'; 2import type TrayIcon from '../../lib/Tray';
3import appIndicator from './appIndicator'; 3import appIndicator from './appIndicator';
4// eslint-disable-next-line import/no-cycle
4import autoUpdate from './autoUpdate'; 5import autoUpdate from './autoUpdate';
5import dnd from './dnd'; 6import dnd from './dnd';
6import download from './download'; 7import download from './download';