Upgrade Typescript and ESLint (#337) (#342)

* Upgrade eslint and additional lint changes

* Upgrade typescript version to v5

---------

Co-authored-by: Dhruv Srivastava <dhruvdhs.ds@gmail.com>
This commit is contained in:
2023-03-24 10:31:33 +04:00
committed by GitHub
co-authored by Dhruv Srivastava
parent 0f239c360e
commit ee63e33cc5
98 changed files with 673 additions and 439 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export class BaseCmd {
_config?: Config;
_clients?: Clients;
_ethProvider?: JsonRpcProvider;
_jobQueue?: JobQueue
_jobQueue?: JobQueue;
_database?: DatabaseInterface;
_indexer?: IndexerInterface;
_eventWatcher?: EventWatcher;
+2 -2
View File
@@ -29,8 +29,8 @@ interface Arguments {
}
export class CreateCheckpointCmd {
_argv?: Arguments
_baseCmd: BaseCmd
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
this._baseCmd = new BaseCmd();
+2 -2
View File
@@ -30,8 +30,8 @@ interface Arguments {
}
export class VerifyCheckpointCmd {
_argv?: Arguments
_baseCmd: BaseCmd
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
this._baseCmd = new BaseCmd();
+1 -1
View File
@@ -34,7 +34,7 @@ interface Arguments {
}
export class ExportStateCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+1 -1
View File
@@ -37,7 +37,7 @@ interface Arguments {
}
export class FillCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+1 -1
View File
@@ -36,7 +36,7 @@ interface Arguments {
}
export class ImportStateCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+1 -1
View File
@@ -31,7 +31,7 @@ interface Arguments {
}
export class InspectCIDCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+1 -1
View File
@@ -29,7 +29,7 @@ interface Arguments {
}
export class JobRunnerCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+2 -2
View File
@@ -22,9 +22,9 @@ interface Arguments {
}
export class ResetStateCmd {
_argv?: Arguments
_argv?: Arguments;
_config?: Config;
_database?: DatabaseInterface
_database?: DatabaseInterface;
async initConfig (configFile: string): Promise<Config> {
this._config = await getConfig(configFile);
+1 -1
View File
@@ -28,7 +28,7 @@ interface Arguments {
}
export class ResetWatcherCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {
+1 -1
View File
@@ -45,7 +45,7 @@ interface Arguments {
}
export class ServerCmd {
_argv?: Arguments
_argv?: Arguments;
_baseCmd: BaseCmd;
constructor () {