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))