From f4be51959b21d5a0f7323421f233fc5768b8fd85 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 1 Jul 2021 09:24:02 +0100 Subject: [PATCH] disable require lint rule in couple more places --- src/electron-main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/electron-main.ts b/src/electron-main.ts index 756ab5a..6782d3a 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -191,6 +191,7 @@ async function setupGlobals() { try { // Load local config and use it to override values from the one baked with the build + // eslint-disable-next-line @typescript-eslint/no-var-requires const localConfig = require(path.join(app.getPath('userData'), 'config.json')); // If the local config has a homeserver defined, don't use the homeserver from the build @@ -837,6 +838,7 @@ app.on('ready', async () => { if (argv['devtools']) { try { + // eslint-disable-next-line @typescript-eslint/no-var-requires const { default: installExt, REACT_DEVELOPER_TOOLS, REACT_PERF } = require('electron-devtools-installer'); installExt(REACT_DEVELOPER_TOOLS) .then((name) => console.log(`Added Extension: ${name}`))