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

@@ -92,7 +92,7 @@ class Accounts extends Component {
const loadings = ((accounts && Object.keys(accounts)) || []).map((_, idx) => (
<div key={ idx } className={ styles.loading }>
<div></div>
<div />
</div>
));

View File

@@ -192,7 +192,7 @@ class TabBar extends Component {
return (
<ToolbarGroup>
<div className={ styles.last }>
<div></div>
<div />
</div>
</ToolbarGroup>
);
@@ -206,7 +206,7 @@ class TabBar extends Component {
.map((view, index) => {
const body = (view.id === 'accounts')
? (
<Tooltip className={ styles.tabbarTooltip } text='navigate between the different parts and views of the application, switching between an account view, token view and distributed application view' />
<Tooltip className={ styles.tabbarTooltip } text='navigate between the different parts and views of the application, switching between an account view, token view and distributed application view' />
)
: null;

View File

@@ -65,8 +65,7 @@ export default class Dapp extends Component {
name={ name }
sandbox='allow-forms allow-popups allow-same-origin allow-scripts'
scrolling='auto'
src={ src }>
</iframe>
src={ src } />
);
}
}

View File

@@ -51,8 +51,7 @@ export default class AddDapps extends Component {
] }
visible
scroll>
<div className={ styles.warning }>
</div>
<div className={ styles.warning } />
{ this.renderList(store.sortedLocal, 'Applications locally available', 'All applications installed locally on the machine by the user for access by the Parity client.') }
{ this.renderList(store.sortedBuiltin, 'Applications bundled with Parity', 'Experimental applications developed by the Parity team to show off dapp capabilities, integration, experimental features and to control certain network-wide client behaviour.') }
{ this.renderList(store.sortedNetwork, 'Applications on the global network', 'These applications are not affiliated with Parity nor are they published by Parity. Each remain under the control of their respective authors. Please ensure that you understand the goals for each application before interacting.') }

View File

@@ -80,7 +80,7 @@ export default class TransactionPendingForm extends Component {
onClick={ this.onToggleReject }
className={ styles.rejectToggle }
>
{ html }
{ html }
</a>
);
}

View File

@@ -62,7 +62,7 @@ export default class Calls extends Component {
onClick={ this.clearHistory }
className={ styles.removeIcon }
>
<i className='icon-trash'></i>
<i className='icon-trash' />
</a>
);
}

View File

@@ -140,7 +140,7 @@ export default class EditableValue extends Component {
title={ `Reset to ${this.props.defaultValue}` }
{ ...this._testInherit('reset') }
>
<i className='icon-anchor'></i>
<i className='icon-anchor' />
</a>
);
}
@@ -154,7 +154,7 @@ export default class EditableValue extends Component {
onClick={ this.onSubmit }
{ ...this._testInherit('submit') }
>
<i className='icon-check'></i>
<i className='icon-check' />
</a>,
<a
key={ 'cancel' }
@@ -162,7 +162,7 @@ export default class EditableValue extends Component {
onClick={ this.onCancel }
{ ...this._testInherit('cancel') }
>
<i className='icon-close'></i>
<i className='icon-close' />
</a>
];
}
@@ -175,7 +175,7 @@ export default class EditableValue extends Component {
title='Edit'
{ ...this._testInherit('edit') }
>
<i className='icon-pencil'></i>
<i className='icon-pencil' />
</a>
);
}

View File

@@ -53,7 +53,7 @@ export default class JsonEditor extends Component {
className={ `${styles.editor} ${errorClass}` }
value={ this.state.value }
/>
{ this.renderError() }
{ this.renderError() }
</div>
);
}

View File

@@ -66,7 +66,7 @@ export default class RpcCalls extends Component {
</div>
</div>
</div>
<div style={ { clear: 'both' } }></div>
<div style={ { clear: 'both' } } />
<div className='dapp-container'>
<div className='row'>
<div className='col col-6 mobile-full'>

View File

@@ -46,7 +46,7 @@ class RpcDocs extends Component {
</div>
</div>
</div>
<div style={ { clear: 'both' } }></div>
<div style={ { clear: 'both' } } />
<div className='dapp-container'>
<div className='row'>
<div className='col col-12'>

View File

@@ -24,10 +24,10 @@ export default class RpcNav extends Component {
return (
<div className={ styles.nav }>
<Link to={ '/rpc/calls' } activeClassName={ styles.activeNav } { ...this._test('rpc-calls-link') }>
<i className='icon-call-out'></i>
<i className='icon-call-out' />
</Link>
<Link to={ '/rpc/docs' } activeClassName={ styles.activeNav } { ...this._test('rpc-docs-link') }>
<i className='icon-docs'></i>
<i className='icon-docs' />
</Link>
</div>
);

View File

@@ -118,8 +118,7 @@ class WriteContract extends Component {
<span
className={ styles.slider }
onMouseDown={ this.handleStartResize }
>
</span>
/>
</div>
<div