From 4d876ae93094e30ee9b2d773e0f11b75198845f4 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 20 Jun 2018 16:11:13 -0500 Subject: [PATCH] style(line length): Limit max length to 120, including comments, etc. --- .eslintrc | 2 +- app/lnd/methods/index.js | 10 +++++++++- app/lnd/methods/networkController.js | 3 ++- app/store/configureStore.dev.js | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 24d49d7e..359c47a9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -44,7 +44,7 @@ "camelcase": 0, "curly": ["error", "all"], "react/require-default-props": 0, - "max-len": ["error", { "code": 150, "ignoreUrls": true }], + "max-len": ["error", { "code": 120, "ignoreUrls": true }], "import/no-extraneous-dependencies": 0, "no-confusing-arrow": "error", "no-mixed-operators": "error", diff --git a/app/lnd/methods/index.js b/app/lnd/methods/index.js index 99219aaf..44a42209 100644 --- a/app/lnd/methods/index.js +++ b/app/lnd/methods/index.js @@ -78,7 +78,15 @@ export default function(lnd, log, event, msg, data) { break case 'channels': // Data looks like - // [ { channels: [] }, { total_limbo_balance: 0, pending_open_channels: [], pending_closing_channels: [], pending_force_closing_channels: [] } ] + // [ + // { channels: [] }, + // { + // total_limbo_balance: 0, + // pending_open_channels: [], + // pending_closing_channels: [], + // pending_force_closing_channels: [] + // } + // ] Promise.all([channelController.listChannels, channelController.pendingChannels].map(func => func(lnd))) .then(channelsData => event.sender.send('receiveChannels', { diff --git a/app/lnd/methods/networkController.js b/app/lnd/methods/networkController.js index 068bcc1f..e7c4afae 100644 --- a/app/lnd/methods/networkController.js +++ b/app/lnd/methods/networkController.js @@ -51,7 +51,8 @@ export function describeGraph(lnd) { } /** - * Attempts to query the daemon’s Channel Router for a possible route to a target destination capable of carrying a specific amount of satoshis + * Attempts to query the daemon’s Channel Router for a possible route to a + * target destination capable of carrying a specific amount of satoshis * @param {[type]} lnd [description] * @param {[type]} pubkey [description] * @param {[type]} amount [description] diff --git a/app/store/configureStore.dev.js b/app/store/configureStore.dev.js index 7c6883cb..25ae4a43 100644 --- a/app/store/configureStore.dev.js +++ b/app/store/configureStore.dev.js @@ -49,7 +49,8 @@ const configureStore = initialState => { const store = createStore(rootReducer, initialState, enhancer) if (module.hot) { - module.hot.accept('../reducers', () => store.replaceReducer(require('../reducers'))) // eslint-disable-line global-require + // eslint-disable-next-line global-require + module.hot.accept('../reducers', () => store.replaceReducer(require('../reducers'))) } return store