Updated ESLINT and fixing linting issues

This commit is contained in:
Nicolas Gotchac
2016-11-25 19:48:06 +01:00
parent 8392090861
commit f77afd072b
23 changed files with 64 additions and 67 deletions

View File

@@ -158,18 +158,18 @@ export default class Application extends Component {
{ Transaction.renderHeader() }
</thead>
<tbody>
{
transactions.map((tx, idx) => (
<Transaction
key={ tx.transaction.hash }
idx={ idx + 1 }
isLocal={ tx.isLocal }
transaction={ tx.transaction }
stats={ tx.stats }
blockNumber={ blockNumber }
/>
))
}
{
transactions.map((tx, idx) => (
<Transaction
key={ tx.transaction.hash }
idx={ idx + 1 }
isLocal={ tx.isLocal }
transaction={ tx.transaction }
stats={ tx.stats }
blockNumber={ blockNumber }
/>
))
}
</tbody>
</table>
);

View File

@@ -83,7 +83,7 @@ class BaseTransaction extends Component {
return (
<span className={ styles.nowrap }>
{ noOfPropagations } ({ noOfPeers } peers)
{ noOfPropagations } ({ noOfPeers } peers)
</span>
);
}
@@ -110,7 +110,7 @@ export class Transaction extends BaseTransaction {
static renderHeader () {
return (
<tr className={ styles.header }>
<th></th>
<th />
<th>
Transaction
</th>
@@ -129,8 +129,7 @@ export class Transaction extends BaseTransaction {
<th>
# Propagated
</th>
<th>
</th>
<th />
</tr>
);
}
@@ -201,7 +200,7 @@ export class LocalTransaction extends BaseTransaction {
static renderHeader () {
return (
<tr className={ styles.header }>
<th></th>
<th />
<th>
Transaction
</th>

View File

@@ -73,7 +73,7 @@ export default class Import extends Component {
Provide the ABI (Contract Interface) in the space provided below. Only non-constant functions (names &amp; types) will be imported, while constant functions and existing signatures will be ignored.
</div>
<div className={ styles.info }>
<textarea rows='8' className={ styles.error } onChange={ this.onAbiEdit }></textarea>
<textarea rows='8' className={ styles.error } onChange={ this.onAbiEdit } />
<div className={ styles.error }>
{ abiError }
</div>

View File

@@ -30,9 +30,9 @@ import './style.css';
ReactDOM.render(
(
<Provider store={ store }>
<Container />
</Provider>
<Provider store={ store }>
<Container />
</Provider>
),
document.querySelector('#container')
);

View File

@@ -147,7 +147,7 @@ export const loadToken = (index) => (dispatch, getState) => {
dispatch(setTokenData(index, null));
dispatch(setTokenLoading(index, false));
if (!e instanceof TypeError) {
if (!(e instanceof TypeError)) {
console.error(`loadToken #${index} error`, e);
}
});