Changeset View
Changeset View
Standalone View
Standalone View
desktop/src/main.js
// @flow | // @flow | ||||
import { | import { | ||||
app, | app, | ||||
BrowserWindow, | BrowserWindow, | ||||
shell, | shell, | ||||
Menu, | Menu, | ||||
ipcMain, | ipcMain, | ||||
systemPreferences, | systemPreferences, | ||||
autoUpdater, | autoUpdater, | ||||
// eslint-disable-next-line import/extensions | |||||
ashoat: Here I added an `eslint-disable`. I could not find a JS file this corresponds to, and it is… | |||||
} from 'electron/main'; | } from 'electron/main'; | ||||
import fs from 'fs'; | import fs from 'fs'; | ||||
import path from 'path'; | import path from 'path'; | ||||
import { initAutoUpdate } from './auto-update.js'; | import { initAutoUpdate } from './auto-update.js'; | ||||
import { handleSquirrelEvent } from './handle-squirrel-event.js'; | import { handleSquirrelEvent } from './handle-squirrel-event.js'; | ||||
const isDev = process.env.ENV === 'dev'; | const isDev = process.env.ENV === 'dev'; | ||||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |
Here I added an eslint-disable. I could not find a JS file this corresponds to, and it is probably some Electron magic that cannot be changed.
I opted to just ignore the ESLint rule, as desktop is not impacted by either the Node.js 19 or Webpack 5 migrations.