Browse Source
style(line length): Limit max length to 120, including comments, etc.
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
4 changed files with
14 additions and
4 deletions
-
.eslintrc
-
app/lnd/methods/index.js
-
app/lnd/methods/networkController.js
-
app/store/configureStore.dev.js
|
|
@ -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", |
|
|
|
|
|
@ -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', { |
|
|
|
|
|
@ -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] |
|
|
|
|
|
@ -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 |
|
|
|