From 288a81775d16675b2d2a36afb67c478ad391349a Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 5 Sep 2018 16:41:03 +0200 Subject: [PATCH] Fixed bunch of eslint errors --- .eslintignore | 5 +++-- src/reducers/Web3Reducer.js | 1 - src/reducers/utils/index.js | 14 +------------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.eslintignore b/.eslintignore index 4c35d7b5..340b57df 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ -solidity +public coverage images -node_modules \ No newline at end of file +node_modules +src/flowtype/npm \ No newline at end of file diff --git a/src/reducers/Web3Reducer.js b/src/reducers/Web3Reducer.js index 8de6714c..40903eec 100644 --- a/src/reducers/Web3Reducer.js +++ b/src/reducers/Web3Reducer.js @@ -4,7 +4,6 @@ import Web3 from 'web3'; import type { ContractFactory } from 'web3'; -import * as STORAGE from 'actions/constants/localStorage'; import * as WEB3 from 'actions/constants/web3'; import type { Action } from 'flowtype'; diff --git a/src/reducers/utils/index.js b/src/reducers/utils/index.js index 67bed35c..0f83e4f6 100644 --- a/src/reducers/utils/index.js +++ b/src/reducers/utils/index.js @@ -1,20 +1,8 @@ /* @flow */ - - -import * as LogActions from 'actions/LogActions'; -import * as STORAGE from 'actions/constants/localStorage'; -import * as WALLET from 'actions/constants/wallet'; import BigNumber from 'bignumber.js'; import type { - Middleware, - MiddlewareAPI, - MiddlewareDispatch, State, - Dispatch, - Action, - AsyncAction, - GetState, Device, TrezorDevice, Account, @@ -65,7 +53,7 @@ export const getDuplicateInstanceNumber = (devices: Array, device: } return !b.instance || a.instance > b.instance ? 1 : -1; }); - + // calculate new instance number const instance: number = affectedDevices.reduce((inst, dev) => (dev.instance ? dev.instance + 1 : inst + 1), 0); return instance;