From 3be2404c0e38d0c9911e06677d071813cadee4a2 Mon Sep 17 00:00:00 2001 From: Joe Bottigliero Date: Wed, 4 Dec 2019 19:05:02 -0600 Subject: [PATCH] chore: eslint updates --- index.js | 2 +- lib/updaters/types/json.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 5f89c59c1..9ee458584 100755 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const tag = require('./lib/lifecycles/tag') const { resolveUpdaterObjectFromArgument } = require('./lib/updaters') module.exports = function standardVersion (argv) { - let defaults = require('./defaults') + const defaults = require('./defaults') /** * `--message` (`-m`) support will be removed in the next major version. */ diff --git a/lib/updaters/types/json.js b/lib/updaters/types/json.js index 5e6924cd1..4494aab76 100644 --- a/lib/updaters/types/json.js +++ b/lib/updaters/types/json.js @@ -8,8 +8,8 @@ module.exports.readVersion = function (contents) { module.exports.writeVersion = function (contents, version) { const json = JSON.parse(contents) - let indent = detectIndent(contents).indent - let newline = detectNewline(contents) + const indent = detectIndent(contents).indent + const newline = detectNewline(contents) json.version = version return stringifyPackage(json, indent, newline) }