Swap to eslint (#154)

* 311 problems (173 errors, 138 warnings)

* Make a start...

* swap to react config

* Literally a handful left

* Clean.

* any removal

* Use Record

* Adjust versions

* Update with latest eslint-standard ruleset

* Update defaults.ts
This commit is contained in:
Jaco Greeff
2019-07-12 22:01:19 +02:00
committed by GitHub
parent 7b6a18cbfb
commit fd67ecdf3a
46 changed files with 412 additions and 395 deletions
+9 -1
View File
@@ -2,6 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SubjectInfo } from './types';
import { combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
@@ -9,12 +11,18 @@ import accounts from './accounts';
import addresses from './addresses';
import contracts from './contracts';
interface Result {
accounts: SubjectInfo;
addresses: SubjectInfo;
contracts: SubjectInfo;
}
export default combineLatest(
accounts.subject,
addresses.subject,
contracts.subject
).pipe(
map(([accounts, addresses, contracts]) => ({
map(([accounts, addresses, contracts]): Result => ({
accounts,
addresses,
contracts