From 9ce424adf7b0e4fa29bb7af8b93e1998d56d2626 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 1 Oct 2021 08:07:17 -0700 Subject: [PATCH] Allowlist some remote usages Summary: Some drive-by changes as I'm working on other stuff. Reviewed By: mweststrate Differential Revision: D31337500 fbshipit-source-id: 8f348af06b7c4b159703d7adf160a7380ba57b22 --- desktop/app/src/MenuBar.tsx | 3 +++ desktop/app/src/init.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/desktop/app/src/MenuBar.tsx b/desktop/app/src/MenuBar.tsx index 0e5b2e65f..c35bc363f 100644 --- a/desktop/app/src/MenuBar.tsx +++ b/desktop/app/src/MenuBar.tsx @@ -7,6 +7,9 @@ * @format */ +// Deliberate use of remote in this context. +/* eslint-disable no-restricted-properties */ + import {FlipperPlugin, FlipperDevicePlugin, PluginDefinition} from './plugin'; import { showOpenDialog, diff --git a/desktop/app/src/init.tsx b/desktop/app/src/init.tsx index 3148269b9..bbf70bc7d 100644 --- a/desktop/app/src/init.tsx +++ b/desktop/app/src/init.tsx @@ -49,6 +49,7 @@ import styled from '@emotion/styled'; import {CopyOutlined} from '@ant-design/icons'; import {getVersionString} from './utils/versionString'; import {PersistGate} from 'redux-persist/integration/react'; +// eslint-disable-next-line flipper/no-electron-remote-imports import {ipcRenderer, remote} from 'electron'; if (process.env.NODE_ENV === 'development' && os.platform() === 'darwin') {