From 646e7e5005fa1238c07f78f1b78e3efd3de9a8a1 Mon Sep 17 00:00:00 2001 From: Thadeu Cotts Date: Tue, 24 Nov 2020 15:41:01 -0300 Subject: [PATCH] [style] [s]: update linter fixes --- packages/create-portal-app/index.js | 33 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/packages/create-portal-app/index.js b/packages/create-portal-app/index.js index a86d41ce..165eb872 100755 --- a/packages/create-portal-app/index.js +++ b/packages/create-portal-app/index.js @@ -32,23 +32,22 @@ program .parse(process.argv); - /** - * Method to ask a custon name if was not passed as parameter - * returns the value passed from terminal input - */ - async function promptPath(){ - return prompts({ - type: 'text', - name: 'path', - message: 'Choose a name to your project', - initial: '', - validate: name => { - //TODO Method to validate valid path name - return true - } - }) - - } +/** + * Method to ask a custon name if was not passed as parameter + * returns the value passed from terminal input + */ +async function promptPath() { + return prompts({ + type: "text", + name: "path", + message: "Choose a name to your project", + initial: "", + validate: (name) => { + //TODO Method to validate valid path name + return true; + }, + }); +} /** * Main method to start CLI and validate inputs