Skip to content

Commit

Permalink
[INTERNAL] ESLint: prefer-const
Browse files Browse the repository at this point in the history
ESLint rule update will follow with eslint-config-google dependency bump. See google/eslint-config-google#52
  • Loading branch information
RandomByte committed Nov 15, 2018
1 parent 90ce3e1 commit 571cd8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cli/commands/build.js
Expand Up @@ -2,7 +2,7 @@

const baseMiddleware = require("../middlewares/base.js");

let build = {
const build = {
command: "build",
describe: "Build project in current directory",
handler: handleBuild,
Expand Down
2 changes: 1 addition & 1 deletion 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")]
Expand Down
4 changes: 2 additions & 2 deletions 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")]
Expand Down Expand Up @@ -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 || "/";
Expand Down
2 changes: 1 addition & 1 deletion 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")]
Expand Down

0 comments on commit 571cd8d

Please sign in to comment.