aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-12 07:37:22 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-12 07:37:22 +0800
commit0c23925c23ec620feadd97157e804ffa6d1003e6 (patch)
tree4e01897d5a51fb9d34cc9563614a7a57c4817392
parent3828edf6a4458a59161c445587f581c14baf50fe (diff)
downloadtangerine-wallet-browser-0c23925c23ec620feadd97157e804ffa6d1003e6.tar.gz
tangerine-wallet-browser-0c23925c23ec620feadd97157e804ffa6d1003e6.tar.zst
tangerine-wallet-browser-0c23925c23ec620feadd97157e804ffa6d1003e6.zip
Fix lint rules for ternary operator placement.
-rw-r--r--.eslintrc2
-rw-r--r--ui/app/components/pending-tx.js36
2 files changed, 19 insertions, 19 deletions
diff --git a/.eslintrc b/.eslintrc
index 1dff2324e..72b3d3e6d 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -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"],
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 1fc2f47d0..96f968929 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -30,22 +30,22 @@ PendingTx.prototype.render = function () {
}
`),
- txData.simulationFails
- ? h('.error', {
- style: {
- marginLeft: 50,
- fontSize: '0.9em',
- },
- }, 'Transaction Error. Exception thrown in contract code.')
+ txData.simulationFails ?
+ h('.error', {
+ style: {
+ marginLeft: 50,
+ fontSize: '0.9em',
+ },
+ }, 'Transaction Error. Exception thrown in contract code.')
: null,
- state.insufficientBalance
- ? h('span.error', {
- style: {
- marginLeft: 50,
- fontSize: '0.9em',
- },
- }, 'Insufficient balance for transaction')
+ state.insufficientBalance ?
+ h('span.error', {
+ style: {
+ marginLeft: 50,
+ fontSize: '0.9em',
+ },
+ }, 'Insufficient balance for transaction')
: null,
// send + cancel
@@ -57,10 +57,10 @@ PendingTx.prototype.render = function () {
},
}, [
- state.insufficientBalance
- ? h('button.btn-green', {
- onClick: state.buyEth,
- }, 'Buy Ether')
+ state.insufficientBalance ?
+ h('button.btn-green', {
+ onClick: state.buyEth,
+ }, 'Buy Ether')
: null,
h('button.confirm', {