Skip to content

Commit 571cd8d

Browse files
committed
[INTERNAL] ESLint: prefer-const
ESLint rule update will follow with eslint-config-google dependency bump. See google/eslint-config-google#52
1 parent 90ce3e1 commit 571cd8d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/cli/commands/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
let build = {
5+
const build = {
66
command: "build",
77
describe: "Build project in current directory",
88
handler: handleBuild,

lib/cli/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Init
2-
let init = {
2+
const init = {
33
command: "init",
44
describe: "Initialize the UI5 Build and Development Tooling configuration for an application or library project.",
55
middlewares: [require("../middlewares/base.js")]

lib/cli/commands/serve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Serve
2-
let serve = {
2+
const serve = {
33
command: "serve",
44
describe: "Start a webserver for the current project",
55
middlewares: [require("../middlewares/base.js")]
@@ -75,7 +75,7 @@ serve.handler = function(argv) {
7575
}
7676
}).then((serverConfig) => {
7777
return server.serve(tree, serverConfig).then(function({h2, port}) {
78-
let protocol = h2 ? "https" : "http";
78+
const protocol = h2 ? "https" : "http";
7979
let browserUrl = protocol + "://localhost:" + port;
8080
if (argv.open !== undefined) {
8181
let relPath = argv.open || "/";

lib/cli/commands/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Tree
2-
let tree = {
2+
const tree = {
33
command: "tree",
44
describe: "Outputs the dependency tree of the current project to stdout. It takes all relevant parameters of ui5 build into account.",
55
middlewares: [require("../middlewares/base.js")]

0 commit comments

Comments
 (0)