mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-09 17:24:07 +00:00
* 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:
@@ -16,6 +16,7 @@
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"indent": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off"
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user