From a7e21abcc28485f5aa90cc34be8a5d5a0e58f937 Mon Sep 17 00:00:00 2001 From: Max Kutny Date: Sun, 28 Jan 2018 13:44:05 +0200 Subject: [PATCH] eslint: require initialization in variable declarations --- js/.eslintrc | 1 + js/kraken.js | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/.eslintrc b/js/.eslintrc index 313e26d1f9f8..348c030d97d8 100644 --- a/js/.eslintrc +++ b/js/.eslintrc @@ -11,6 +11,7 @@ "strict": "error", "semi": "error", "indent": "error", + "init-declarations": "error", "comma-dangle": ["error", "always-multiline"], "brace-style": ["error", "1tbs"], "multiline-comment-style": ["error", "separate-lines"], diff --git a/js/kraken.js b/js/kraken.js index 8f0956334195..a95e94905908 100644 --- a/js/kraken.js +++ b/js/kraken.js @@ -8,7 +8,6 @@ const { ExchangeNotAvailable, ExchangeError, OrderNotFound, DDoSProtection, Inva // --------------------------------------------------------------------------- module.exports = class kraken extends Exchange { - describe () { return this.deepExtend (super.describe (), { 'id': 'kraken', @@ -209,7 +208,7 @@ module.exports = class kraken extends Exchange { } async fetchMinOrderSizes () { - let html; + let html = undefined; try { this.parseJsonResponse = false; html = await this.zendeskGet205893708WhatIsTheMinimumOrderSize (); @@ -844,4 +843,4 @@ module.exports = class kraken extends Exchange { } return response; } -} +};