From 571cd8deee040ae1a60cf24c028bc8f5a97c0418 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Thu, 15 Nov 2018 13:46:51 +0100 Subject: [PATCH] [INTERNAL] ESLint: prefer-const ESLint rule update will follow with eslint-config-google dependency bump. See https://github.com/google/eslint-config-google/pull/52 --- lib/cli/commands/build.js | 2 +- lib/cli/commands/init.js | 2 +- lib/cli/commands/serve.js | 4 ++-- lib/cli/commands/tree.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cli/commands/build.js b/lib/cli/commands/build.js index ab734408..c47896c7 100644 --- a/lib/cli/commands/build.js +++ b/lib/cli/commands/build.js @@ -2,7 +2,7 @@ const baseMiddleware = require("../middlewares/base.js"); -let build = { +const build = { command: "build", describe: "Build project in current directory", handler: handleBuild, diff --git a/lib/cli/commands/init.js b/lib/cli/commands/init.js index af830c34..968cde3f 100644 --- a/lib/cli/commands/init.js +++ b/lib/cli/commands/init.js @@ -1,5 +1,5 @@ // Init -let init = { +const init = { command: "init", describe: "Initialize the UI5 Build and Development Tooling configuration for an application or library project.", middlewares: [require("../middlewares/base.js")] diff --git a/lib/cli/commands/serve.js b/lib/cli/commands/serve.js index a7d75ac4..ef327e86 100644 --- a/lib/cli/commands/serve.js +++ b/lib/cli/commands/serve.js @@ -1,5 +1,5 @@ // Serve -let serve = { +const serve = { command: "serve", describe: "Start a webserver for the current project", middlewares: [require("../middlewares/base.js")] @@ -75,7 +75,7 @@ serve.handler = function(argv) { } }).then((serverConfig) => { return server.serve(tree, serverConfig).then(function({h2, port}) { - let protocol = h2 ? "https" : "http"; + const protocol = h2 ? "https" : "http"; let browserUrl = protocol + "://localhost:" + port; if (argv.open !== undefined) { let relPath = argv.open || "/"; diff --git a/lib/cli/commands/tree.js b/lib/cli/commands/tree.js index 50d60dbc..704777dc 100644 --- a/lib/cli/commands/tree.js +++ b/lib/cli/commands/tree.js @@ -1,5 +1,5 @@ // Tree -let tree = { +const tree = { command: "tree", describe: "Outputs the dependency tree of the current project to stdout. It takes all relevant parameters of ui5 build into account.", middlewares: [require("../middlewares/base.js")]