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
View File
@@ -16,6 +16,7 @@
"@typescript-eslint"
],
"rules": {
"indent": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
+1 -1
View File
@@ -62,7 +62,7 @@ export class Foo {
export const FooID = idof<Foo>();
export class Bar {
prop: string
prop: string;
constructor (prop: string) {
this.prop = prop;
+3 -3
View File
@@ -16,10 +16,10 @@
"@typescript-eslint/parser": "^5.47.1",
"chai": "^4.3.4",
"chai-spies": "^1.0.0",
"eslint": "^7.27.0",
"eslint": "^8.35.0",
"eslint-config-semistandard": "^15.0.1",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^5.0.0",
@@ -28,7 +28,7 @@
"mocha": "^8.4.0",
"nodemon": "^2.0.7",
"ts-node": "^10.2.1",
"typescript": "^4.3.2"
"typescript": "^5.0.2"
},
"bin": {
"compare-entity": "bin/compare-entity"
+1 -1
View File
@@ -50,7 +50,7 @@ export class GraphWatcher {
_wasmRestartBlocksInterval: number;
_dataSources: any[] = [];
_dataSourceMap: { [key: string]: DataSource } = {};
_transactionsMap: Map<string, Transaction> = new Map()
_transactionsMap: Map<string, Transaction> = new Map();
_context: Context = {};
+1 -1
View File
@@ -23,7 +23,7 @@ import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-
export class Indexer implements IndexerInterface {
_getStorageAt: GetStorageAt;
_storageLayoutMap: Map<string, StorageLayout> = new Map()
_storageLayoutMap: Map<string, StorageLayout> = new Map();
constructor (ethClient: EthClient, storageLayoutMap?: Map<string, StorageLayout>) {
this._getStorageAt = ethClient.getStorageAt.bind(ethClient);