Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit 6fd730d

Browse files
committed
fix: Linting
1 parent 1f7f83a commit 6fd730d

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

lib/config.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ export interface Options {
77
* If not provided this defaults to chain `mainnet` and hardfork `chainstart`
88
*/
99
common?: Common
10-
}
10+
}
1111

12-
export class Config {
13-
12+
export class Config {
1413
public common!: Common
1514

1615
static instance: Config
@@ -29,7 +28,4 @@ export class Config {
2928

3029
Config.instance = this
3130
}
32-
33-
34-
35-
}
31+
}

lib/node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const defaultOptions = {
1717
*/
1818
export default class Node extends events.EventEmitter {
1919
public config: Config
20-
20+
2121
public logger: any
2222
public servers: any
2323
public syncmode: any
@@ -44,7 +44,7 @@ export default class Node extends events.EventEmitter {
4444
constructor(options: any) {
4545
super()
4646
options = { ...defaultOptions, ...options }
47-
this.config = options.config || new Config()
47+
this.config = options.config || new Config()
4848
this.logger = options.logger
4949
this.servers = options.servers
5050
this.syncmode = options.syncmode

lib/service/ethereumservice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const defaultOptions = {
1616
*/
1717
export class EthereumService extends Service {
1818
public config: Config
19-
19+
2020
public flow: FlowControl
2121
public chain: Chain
2222
public minPeers: number
@@ -41,7 +41,7 @@ export class EthereumService extends Service {
4141
options = { ...defaultOptions, ...options }
4242
super(options)
4343

44-
this.config = options.config || new Config()
44+
this.config = options.config || new Config()
4545

4646
this.flow = new FlowControl(options)
4747
this.chain = options.chain || new Chain(options)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"@types/node": "^14.11.5",
9494
"@types/tape": "^4.13.0",
9595
"@types/tape-catch": "^1.0.0",
96+
"eslint": "^6.8.0",
9697
"file-replace-loader": "^1.2.0",
9798
"husky": "^2.1.0",
9899
"json-to-markdown": "^1.0.4",

0 commit comments

Comments
 (0)