refactor: upgrade eslint 9 and reformat all codes

This commit is contained in:
leejooy96 committed 2025-04-18 10:15:05 +09:00
1 parent 2c35a22c32
commit deac336fb4
13 files changed
+1638 -2386

No files matched your search

+1
View File
@@ -116,6 +116,7 @@ export const createMainWindow = async (): Promise<BrowserWindow> => {
export const createErrorWindow = async (
errorWindow: BrowserWindow,
mainWindow: BrowserWindow,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
details?: RenderProcessGoneDetails
): Promise<BrowserWindow> => {
if (!Constants.IS_DEV_ENV) {
+2 -2
View File
@@ -38,10 +38,10 @@ export function createTray(window: BrowserWindow, options) {
tray.setContextMenu(contextMenu)
} else {
// handle click on tray icon
tray.on('right-click', function (event) {
tray.on('right-click', function () {
debounce(() => toggleWindow(window))
})
tray.on('click', function (event) {
tray.on('click', function () {
debounce(() => toggleWindow(window))
})
// no menu for tray window