Fix lint rules for ternary operator placement.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 3828edf6a4
commit 0c23925c23
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 2
      .eslintrc
  2. 12
      ui/app/components/pending-tx.js

@ -127,7 +127,7 @@
"no-whitespace-before-property": 2,
"no-with": 2,
"one-var": [2, { "initialized": "never" }],
"operator-linebreak": [1, "after", { "overrides": { "?": "before", ":": "before" } }],
"operator-linebreak": [1, "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
"padded-blocks": [1, "never"],
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": [2, "never"],

@ -30,8 +30,8 @@ PendingTx.prototype.render = function () {
}
`),
txData.simulationFails
? h('.error', {
txData.simulationFails ?
h('.error', {
style: {
marginLeft: 50,
fontSize: '0.9em',
@ -39,8 +39,8 @@ PendingTx.prototype.render = function () {
}, 'Transaction Error. Exception thrown in contract code.')
: null,
state.insufficientBalance
? h('span.error', {
state.insufficientBalance ?
h('span.error', {
style: {
marginLeft: 50,
fontSize: '0.9em',
@ -57,8 +57,8 @@ PendingTx.prototype.render = function () {
},
}, [
state.insufficientBalance
? h('button.btn-green', {
state.insufficientBalance ?
h('button.btn-green', {
onClick: state.buyEth,
}, 'Buy Ether')
: null,

Loading…
Cancel
Save