Browse Source

style(line length): Limit max length to 120, including comments, etc.

renovate/lint-staged-8.x
Ben Woosley 7 years ago
parent
commit
4d876ae930
No known key found for this signature in database GPG Key ID: 6EE5F3785F78B345
  1. 2
      .eslintrc
  2. 10
      app/lnd/methods/index.js
  3. 3
      app/lnd/methods/networkController.js
  4. 3
      app/store/configureStore.dev.js

2
.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",

10
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', {

3
app/lnd/methods/networkController.js

@ -51,7 +51,8 @@ export function describeGraph(lnd) {
}
/**
* Attempts to query the daemons Channel Router for a possible route to a target destination capable of carrying a specific amount of satoshis
* Attempts to query the daemons 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]

3
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

Loading…
Cancel
Save