From 9e6a86923aa7cb29f391b7c52a4a3f52d26f8c4c Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 22 Nov 2018 06:32:07 -0800 Subject: [PATCH] Fix yarn lint (#332) Summary: Eslint / prettier are unhappy with the formatting of the FlowFixMe comment, but the suggested solution is really ugly. Let's disable the lint for now and remove this once it's addressed. Pull Request resolved: https://github.com/facebook/flipper/pull/332 Reviewed By: jknoxville Differential Revision: D13156552 Pulled By: passy fbshipit-source-id: 680d151ea1022912e0e4a83fa42dc51005631c30 --- src/chrome/DevicesButton.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chrome/DevicesButton.js b/src/chrome/DevicesButton.js index 8c1edb8b3..86482e22f 100644 --- a/src/chrome/DevicesButton.js +++ b/src/chrome/DevicesButton.js @@ -19,6 +19,8 @@ type Props = { preferDevice: (device: string) => void, }; +// Remove this if the flow fixme at the bottom is addressed (or has already been removed). +/* eslint-disable prettier/prettier */ class DevicesButton extends Component { launchEmulator = (name: string) => { const child = spawn('emulator', [`@${name}`], { @@ -96,7 +98,8 @@ class DevicesButton extends Component { } /* $FlowFixMe(>=0.86.0) This comment suppresses an error found when Flow v0.86 - * was deployed. To see the error, delete this comment and run Flow. */ + * was deployed. To see the error, delete this comment and run Flow. + */ export default connect( ({connections: {devices, androidEmulators, selectedDevice}}) => ({ devices,