From 33773e5e85b26eca1c1af7014677e30d4a723e9a Mon Sep 17 00:00:00 2001 From: Akshay S Dinesh Date: Thu, 23 Aug 2018 10:35:52 +0530 Subject: [PATCH] Replace global return with process.exit(1) ESlint fails with "parsing error return outside function" because of this return. Alternative is to use process.exit. --- lib/core-generators/new/templates/app.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core-generators/new/templates/app.js.template b/lib/core-generators/new/templates/app.js.template index f2c5f4eb..8fabcd5e 100644 --- a/lib/core-generators/new/templates/app.js.template +++ b/lib/core-generators/new/templates/app.js.template @@ -46,7 +46,7 @@ try { console.error('also run this app with `sails lift`. Running with `sails lift` will'); console.error('not run this file (`app.js`), but it will do exactly the same thing.'); console.error('(It even uses your app directory\'s local Sails install, if possible.)'); - return; + process.exit(1); }//-•