From 9384537269d60bb80b3330cf44ddbdd9d528c454 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Sat, 23 Jun 2018 01:45:55 +0100 Subject: [PATCH] Run yarn lint --fix To resolve: ``` src/Config.js 86:18 error Unnecessary 'else' after 'return' no-else-return src/Use.js 3:15 error `deepmerge` import should occur before import of `./ChainedMap` import/order ``` --- src/Config.js | 3 ++- src/Use.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Config.js b/src/Config.js index 487061b..3aad47e 100644 --- a/src/Config.js +++ b/src/Config.js @@ -83,7 +83,8 @@ module.exports = class extends ChainedMap { if (typeof value === 'function') { if (value.__expression) { return value.__expression; - } else if (!verbose && value.toString().length > 100) { + } + if (!verbose && value.toString().length > 100) { return `function () { /* omitted long function */ }`; } } diff --git a/src/Use.js b/src/Use.js index c298a60..8ab3078 100644 --- a/src/Use.js +++ b/src/Use.js @@ -1,6 +1,6 @@ +const merge = require('deepmerge'); const ChainedMap = require('./ChainedMap'); const Orderable = require('./Orderable'); -const merge = require('deepmerge'); module.exports = Orderable( class extends ChainedMap {