Browse Source

enhance(linting): Enable the eslint:recommended rules

Among other things, this makes no-console an error rather than a warning.
https://eslint.org/docs/rules/no-console

Given that we now have a proper logging facility, good to prevent incidental
introduction in the future.
renovate/lint-staged-8.x
Ben Woosley 7 years ago
parent
commit
2cebba7a57
No known key found for this signature in database GPG Key ID: 6EE5F3785F78B345
  1. 1
      .eslintrc
  2. 1
      app/lnd/methods/index.js
  3. 2
      app/lnd/walletUnlockerMethods/index.js

1
.eslintrc

@ -6,6 +6,7 @@
},
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:import/errors",

1
app/lnd/methods/index.js

@ -1,4 +1,3 @@
/* eslint no-console: 0 */ // --> OFF
// import grpc from 'grpc'
import * as invoicesController from './invoicesController'

2
app/lnd/walletUnlockerMethods/index.js

@ -1,5 +1,3 @@
/* eslint no-console: 0 */ // --> OFF
import * as walletController from '../methods/walletController'
export default function (walletUnlocker, log, event, msg, data) {

Loading…
Cancel
Save