From 10056d254271f2076d3627e4696a60e6d8c1aa4f Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Thu, 19 Sep 2024 13:57:07 +0700 Subject: [PATCH] chore: fix lint --- packages/ssz/src/type/profile.ts | 2 +- packages/ssz/src/type/stableContainer.ts | 10 ++++++++-- packages/ssz/src/viewDU/stableContainer.ts | 2 +- packages/ssz/test/unit/byType/profile/valid.test.ts | 2 +- .../ssz/test/unit/byType/stableContainer/valid.test.ts | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/ssz/src/type/profile.ts b/packages/ssz/src/type/profile.ts index a6897910..a0b80e24 100644 --- a/packages/ssz/src/type/profile.ts +++ b/packages/ssz/src/type/profile.ts @@ -29,7 +29,7 @@ import { } from "../viewDU/profile"; import {Case} from "../util/strings"; import {BitArray} from "../value/bitArray"; -import {getActiveFields, mixInActiveFields, setActiveFields} from "./stableContainer"; +import {mixInActiveFields, setActiveFields} from "./stableContainer"; import {zeroHash} from "../util/zeros"; /* eslint-disable @typescript-eslint/member-ordering */ diff --git a/packages/ssz/src/type/stableContainer.ts b/packages/ssz/src/type/stableContainer.ts index 6d502fc7..da3a02a9 100644 --- a/packages/ssz/src/type/stableContainer.ts +++ b/packages/ssz/src/type/stableContainer.ts @@ -11,12 +11,18 @@ import { getNode, zeroNode, countToDepth, - setNodeH, getNodeH, setNode, setNodeWithFn, } from "@chainsafe/persistent-merkle-tree"; -import {ValueWithCachedPermanentRoot, hash64, maxChunksToDepth, merkleize, splitIntoRootChunks, symbolCachedPermanentRoot} from "../util/merkleize"; +import { + ValueWithCachedPermanentRoot, + hash64, + maxChunksToDepth, + merkleize, + splitIntoRootChunks, + symbolCachedPermanentRoot, +} from "../util/merkleize"; import {Require} from "../util/types"; import {namedClass} from "../util/named"; import {Type, ValueOf} from "./abstract"; diff --git a/packages/ssz/src/viewDU/stableContainer.ts b/packages/ssz/src/viewDU/stableContainer.ts index 3c04a78c..ae09fcb6 100644 --- a/packages/ssz/src/viewDU/stableContainer.ts +++ b/packages/ssz/src/viewDU/stableContainer.ts @@ -5,7 +5,7 @@ import {CompositeType, isCompositeType, CompositeTypeAny} from "../type/composit import {computeSerdesData, ContainerTypeGeneric} from "../view/stableContainer"; import {TreeViewDU} from "./abstract"; import {OptionalType} from "../type/optional"; -import { BitArray } from "../value/bitArray" +import {BitArray} from "../value/bitArray"; /* eslint-disable @typescript-eslint/member-ordering */ diff --git a/packages/ssz/test/unit/byType/profile/valid.test.ts b/packages/ssz/test/unit/byType/profile/valid.test.ts index 2c4abc63..1ecc6929 100644 --- a/packages/ssz/test/unit/byType/profile/valid.test.ts +++ b/packages/ssz/test/unit/byType/profile/valid.test.ts @@ -1,4 +1,4 @@ -import {BitArray, ProfileType, UintNumberType, hash64} from "../../../../src"; +import {BitArray, ProfileType, UintNumberType} from "../../../../src"; import {runTypeTestValid} from "../runTypeTestValid"; // taken from eip spec tests diff --git a/packages/ssz/test/unit/byType/stableContainer/valid.test.ts b/packages/ssz/test/unit/byType/stableContainer/valid.test.ts index 4b905946..90bfe688 100644 --- a/packages/ssz/test/unit/byType/stableContainer/valid.test.ts +++ b/packages/ssz/test/unit/byType/stableContainer/valid.test.ts @@ -62,7 +62,7 @@ runTypeTestValid({ }, ], }); -// +// runTypeTestValid({ type: Shape2, defaultValue: {side: null, color: 0, radius: null},