From 3ded5ff30b51e109b8ec820eb18868014fa23f47 Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Wed, 26 Feb 2020 19:27:24 -0500 Subject: [PATCH] cleanup: fix lint issue from PR #10 (#12) --- main.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/main.js b/main.js index 1b7083a3..03e668b5 100644 --- a/main.js +++ b/main.js @@ -230,22 +230,26 @@ Promise.resolve().then(async () => { }) const reactNativeVersion = generateExampleApp - ? (await prompt({ - type: 'text', - name: 'reactNativeVersion', - message: - 'What react-native version to use for the example app (should be at least react-native@0.60)?', - initial: 'react-native@latest' - })).reactNativeVersion + ? ( + await prompt({ + type: 'text', + name: 'reactNativeVersion', + message: + 'What react-native version to use for the example app (should be at least react-native@0.60)?', + initial: 'react-native@latest' + }) + ).reactNativeVersion : null const showReactNativeOutput = generateExampleApp - ? (await prompt({ - type: 'confirm', - name: 'showReactNativeOutput', - message: 'Show the output of React Native CLI (recommended)?', - initial: true - })).showReactNativeOutput + ? ( + await prompt({ + type: 'confirm', + name: 'showReactNativeOutput', + message: 'Show the output of React Native CLI (recommended)?', + initial: true + }) + ).showReactNativeOutput : false if (generateExampleApp) {