mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
lint fixes
This commit is contained in:
parent
eff9a578f7
commit
da7471e095
@ -50,7 +50,7 @@
|
|||||||
"eqeqeq": [2, "allow-null"],
|
"eqeqeq": [2, "allow-null"],
|
||||||
"generator-star-spacing": [2, { "before": true, "after": true }],
|
"generator-star-spacing": [2, { "before": true, "after": true }],
|
||||||
"handle-callback-err": [1, "^(err|error)$" ],
|
"handle-callback-err": [1, "^(err|error)$" ],
|
||||||
"indent": [2, 2, { "SwitchCase": 1 }],
|
"indent": "off",
|
||||||
"jsx-quotes": [2, "prefer-single"],
|
"jsx-quotes": [2, "prefer-single"],
|
||||||
"key-spacing": 1,
|
"key-spacing": 1,
|
||||||
"keyword-spacing": [2, { "before": true, "after": true }],
|
"keyword-spacing": [2, { "before": true, "after": true }],
|
||||||
@ -133,7 +133,7 @@
|
|||||||
"no-with": 2,
|
"no-with": 2,
|
||||||
"one-var": [2, { "initialized": "never" }],
|
"one-var": [2, { "initialized": "never" }],
|
||||||
"operator-linebreak": [1, "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
|
"operator-linebreak": [1, "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
|
||||||
"padded-blocks": [1, "never"],
|
"padded-blocks": "off",
|
||||||
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
|
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
|
||||||
"semi": [2, "never"],
|
"semi": [2, "never"],
|
||||||
"semi-spacing": [2, { "before": false, "after": true }],
|
"semi-spacing": [2, { "before": false, "after": true }],
|
||||||
|
@ -81,7 +81,7 @@ function suffixCheck () {
|
|||||||
var currentUrl = window.location.href
|
var currentUrl = window.location.href
|
||||||
var currentRegex
|
var currentRegex
|
||||||
for (let i = 0; i < prohibitedTypes.length; i++) {
|
for (let i = 0; i < prohibitedTypes.length; i++) {
|
||||||
currentRegex = new RegExp(`\.${prohibitedTypes[i]}$`)
|
currentRegex = new RegExp(`\\.${prohibitedTypes[i]}$`)
|
||||||
if (currentRegex.test(currentUrl)) {
|
if (currentRegex.test(currentUrl)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ const inherits = require('util').inherits
|
|||||||
const Component = require('react').Component
|
const Component = require('react').Component
|
||||||
const h = require('react-hyperscript')
|
const h = require('react-hyperscript')
|
||||||
const connect = require('react-redux').connect
|
const connect = require('react-redux').connect
|
||||||
const vreme = new (require('vreme'))
|
const vreme = new (require('vreme'))()
|
||||||
const explorerLink = require('../../lib/explorer-link')
|
const explorerLink = require('../../lib/explorer-link')
|
||||||
const actions = require('../actions')
|
const actions = require('../actions')
|
||||||
const addressSummary = require('../util').addressSummary
|
const addressSummary = require('../util').addressSummary
|
||||||
|
@ -6,7 +6,7 @@ const EthBalance = require('./eth-balance')
|
|||||||
const addressSummary = require('../util').addressSummary
|
const addressSummary = require('../util').addressSummary
|
||||||
const explorerLink = require('../../lib/explorer-link')
|
const explorerLink = require('../../lib/explorer-link')
|
||||||
const CopyButton = require('./copyButton')
|
const CopyButton = require('./copyButton')
|
||||||
const vreme = new (require('vreme'))
|
const vreme = new (require('vreme'))()
|
||||||
const Tooltip = require('./tooltip')
|
const Tooltip = require('./tooltip')
|
||||||
const numberToBN = require('number-to-bn')
|
const numberToBN = require('number-to-bn')
|
||||||
|
|
||||||
|
@ -40,9 +40,12 @@ function reduceApp (state, action) {
|
|||||||
accountDetail: {
|
accountDetail: {
|
||||||
subview: 'transactions',
|
subview: 'transactions',
|
||||||
},
|
},
|
||||||
transForward: true, // Used to render transition direction
|
// Used to render transition direction
|
||||||
isLoading: false, // Used to display loading indicator
|
transForward: true,
|
||||||
warning: null, // Used to display error text
|
// Used to display loading indicator
|
||||||
|
isLoading: false,
|
||||||
|
// Used to display error text
|
||||||
|
warning: null,
|
||||||
}, state.appState)
|
}, state.appState)
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user