From 281ff6e980b70e0a20d3f0d66bafed7d9353945a Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 20 May 2024 11:50:55 +0200 Subject: [PATCH] lint --- .eslintrc.cjs | 1 - src/main/index.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index b2cfbdb9..8fd8d9da 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -6,7 +6,6 @@ module.exports = { 'jsx-a11y/interactive-supports-focus': 0, 'jsx-a11y/control-has-associated-label': 0, 'unicorn/prefer-node-protocol': 0, // todo - '@typescript-eslint/no-var-requires': 0, // todo }, overrides: [ diff --git a/src/main/index.ts b/src/main/index.ts index 5476fbac..4c05a339 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -374,7 +374,8 @@ const readyPromise = app.whenReady(); if (isDev) { - const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('electron-devtools-installer'); // eslint-disable-line global-require,import/no-extraneous-dependencies + // eslint-disable-next-line @typescript-eslint/no-var-requires,global-require,import/no-extraneous-dependencies + const { default: installExtension, REACT_DEVELOPER_TOOLS } = require('electron-devtools-installer'); installExtension(REACT_DEVELOPER_TOOLS) .then((name: string) => logger.info('Added Extension', name))