Typescript-eslint 2 (#1353)

* Make a start

* More minor cleanups

* Some more cleanups

* Last round?

* Exclude build folders
This commit is contained in:
Jaco Greeff
2019-09-02 07:01:32 +02:00
committed by GitHub
parent bd5c167c14
commit 2dd7cc0e69
94 changed files with 391 additions and 324 deletions
+2
View File
@@ -70,6 +70,7 @@ export default class Rpc implements RpcInterface {
* @param {ProviderInterface} provider An API provider using HTTP or WebSocket
*/
public constructor (provider: ProviderInterface) {
// eslint-disable-next-line @typescript-eslint/unbound-method
assert(provider && isFunction(provider.send), 'Expected Provider to API create');
this.provider = provider;
@@ -249,6 +250,7 @@ export default class Rpc implements RpcInterface {
// Normalize args so that different args that should be cached
// together are cached together.
// E.g.: `query.my.method('abc') === query.my.method(createType('AccountId', 'abc'));`
// eslint-disable-next-line @typescript-eslint/unbound-method
normalizer: JSON.stringify
});