Skip to content

Commit

Permalink
Less red in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Deathamns committed Jan 12, 2018
1 parent caae9ef commit f19c1b5
Show file tree
Hide file tree
Showing 93 changed files with 191 additions and 197 deletions.
4 changes: 2 additions & 2 deletions js/_1broker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, AuthenticationError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/_1btcxe.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions js/acx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, OrderNotFound } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, OrderNotFound } = require ('./base/errors');


// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -194,7 +194,7 @@ module.exports = class acx extends Exchange {
quote = quote.toUpperCase ();
base = this.commonCurrencyCode (base);
quote = this.commonCurrencyCode (quote);
let symbol = base + '/' + quote;
symbol = base + '/' + quote;
}
let ticker = tickers[id];
result[symbol] = this.parseTicker (ticker, market);
Expand Down
2 changes: 1 addition & 1 deletion js/allcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// ---------------------------------------------------------------------------

const okcoinusd = require ('./okcoinusd.js')
const okcoinusd = require ('./okcoinusd.js');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, InsufficientFunds, OrderNotFound, InvalidOrder, DDoSProtection } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, InsufficientFunds, OrderNotFound, InvalidOrder, DDoSProtection } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bitbay.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
10 changes: 5 additions & 5 deletions js/bitcoincoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -67,7 +67,7 @@ module.exports = class bitcoincoid extends Exchange {
'getOrder',
'openOrders',
'cancelOrder',
'orderHistory'
'orderHistory',
],
},
},
Expand All @@ -83,7 +83,7 @@ module.exports = class bitcoincoid extends Exchange {
'WAVES/IDR': { 'id': 'waves_idr', 'symbol': 'WAVES/IDR', 'base': 'WAVES', 'quote': 'IDR', 'baseId': 'waves', 'quoteId': 'idr' },
'XRP/IDR': { 'id': 'xrp_idr', 'symbol': 'XRP/IDR', 'base': 'XRP', 'quote': 'IDR', 'baseId': 'xrp', 'quoteId': 'idr' },
'XZC/IDR': { 'id': 'xzc_idr', 'symbol': 'XZC/IDR', 'base': 'XZC', 'quote': 'IDR', 'baseId': 'xzc', 'quoteId': 'idr' },
'XLM/IDR': {'id': 'str_idr', 'symbol': 'XLM/IDR', 'base': 'XLM', 'quote': 'IDR', 'baseId': 'str', 'quoteId': 'idr' },
'XLM/IDR': { 'id': 'str_idr', 'symbol': 'XLM/IDR', 'base': 'XLM', 'quote': 'IDR', 'baseId': 'str', 'quoteId': 'idr' },
'BTS/BTC': { 'id': 'bts_btc', 'symbol': 'BTS/BTC', 'base': 'BTS', 'quote': 'BTC', 'baseId': 'bts', 'quoteId': 'btc' },
'DASH/BTC': { 'id': 'drk_btc', 'symbol': 'DASH/BTC', 'base': 'DASH', 'quote': 'BTC', 'baseId': 'drk', 'quoteId': 'btc' },
'DOGE/BTC': { 'id': 'doge_btc', 'symbol': 'DOGE/BTC', 'base': 'DOGE', 'quote': 'BTC', 'baseId': 'doge', 'quoteId': 'btc' },
Expand Down Expand Up @@ -251,7 +251,7 @@ module.exports = class bitcoincoid extends Exchange {
let market = this.market (symbol);
let response = await this.privatePostGetOrder (this.extend ({
'pair': market['id'],
'order_id': id
'order_id': id,
}, params));
let orders = response['return'];
let order = this.parseOrder (this.extend ({ 'id': id }, orders['order']), market);
Expand Down
6 changes: 3 additions & 3 deletions js/bitfinex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, InsufficientFunds, NotSupported, InvalidOrder, OrderNotFound } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, InsufficientFunds, NotSupported, InvalidOrder, OrderNotFound } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -466,7 +466,7 @@ module.exports = class bitfinex extends Exchange {
let orderType = order['type'];
let exchange = orderType.indexOf ('exchange ') >= 0;
if (exchange) {
let [ prefix, orderType ] = order['type'].split (' ');
orderType = order['type'].split (' ')[1];
}
let timestamp = parseInt (parseFloat (order['timestamp']) * 1000);
let result = {
Expand Down
4 changes: 2 additions & 2 deletions js/bitfinex2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const bitfinex = require ('./bitfinex.js')
const { ExchangeError, NotSupported, InsufficientFunds } = require ('./base/errors')
const bitfinex = require ('./bitfinex.js');
const { ExchangeError, NotSupported, InsufficientFunds } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion js/bitflyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const Exchange = require ('./base/Exchange');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bithumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, NotSupported } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
7 changes: 3 additions & 4 deletions js/bitlish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { NotSupported } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { NotSupported } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -338,8 +338,7 @@ module.exports = class bitlish extends Exchange {
if (method == 'GET') {
if (Object.keys (params).length)
url += '?' + this.urlencode (params);
}
else {
} else {
body = this.json (params);
headers = { 'Content-Type': 'application/json' };
}
Expand Down
4 changes: 2 additions & 2 deletions js/bitmarket.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bitmex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bitso.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bitstamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, AuthenticationError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions js/bitstamp1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, NotSupported, AuthenticationError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, NotSupported } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -253,4 +253,4 @@ module.exports = class bitstamp1 extends Exchange {
throw new ExchangeError (this.id + ' ' + this.json (response));
return response;
}
}
}
4 changes: 2 additions & 2 deletions js/bittrex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, AuthenticationError, InvalidOrder, InsufficientFunds, OrderNotFound, DDoSProtection } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError, InvalidOrder, InsufficientFunds, OrderNotFound, DDoSProtection } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bl3p.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict"
"use strict";

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const Exchange = require ('./base/Exchange');

// ---------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion js/bleutrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// ---------------------------------------------------------------------------

const bittrex = require ('./bittrex.js')
const bittrex = require ('./bittrex.js');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/braziliex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError, InsufficientFunds, OrderNotFound, InvalidOrder, AuthenticationError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, InvalidOrder, AuthenticationError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/btcbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
3 changes: 1 addition & 2 deletions js/btcchina.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { AuthenticationError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');

// ---------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion js/btcexchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// ---------------------------------------------------------------------------

const btcturk = require ('./btcturk.js')
const btcturk = require ('./btcturk.js');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/btcmarkets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError, OrderNotFound, NotSupported } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/btctradeua.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/btcturk.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/btcx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/bxinth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions js/ccex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit f19c1b5

Please sign in to comment.