From 76c7443d07daa05672afcacc6c4a8ca4878f9d16 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 21 Feb 2019 17:17:22 +0200 Subject: [PATCH] chore(cloudcmd) lint --- client/modules/config.js | 6 +++++- test/before.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/modules/config.js b/client/modules/config.js index 5ef4f660..5f9eb14e 100644 --- a/client/modules/config.js +++ b/client/modules/config.js @@ -66,7 +66,11 @@ let Element; let Template; function getHost() { - const {host, origin, protocol} = location; + const { + host, + origin, + protocol, + } = location; const href = origin || `${protocol}//${host}`; return href; diff --git a/test/before.js b/test/before.js index b08c6c8f..495d07a2 100644 --- a/test/before.js +++ b/test/before.js @@ -20,7 +20,11 @@ const currentConfig = readjson.sync.try(pathConfig); module.exports = before; function before(options, fn = options) { - const {config, plugins, modules} = options; + const { + config, + plugins, + modules, + } = options; const app = express(); const server = http.createServer(app);