Skip to content

Commit 47b056d

Browse files
fix: address CI failures with unused variables in price_service/sdk/js
Co-Authored-By: Connor Prussin <[email protected]>
1 parent ddb0fdf commit 47b056d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

price_service/sdk/js/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ module.exports = {
55
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
66
rules: {
77
"@typescript-eslint/no-explicit-any": "off",
8+
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
89
},
910
};

price_service/sdk/js/src/__tests__/AccumulatorUpdateData.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const TEST_ACCUMULATOR_UPDATE_DATA =
1111

1212
describe("Test parse accumulator update", () => {
1313
test("Happy path", async () => {
14-
const { vaa, updates } = parseAccumulatorUpdateData(
14+
const { vaa: _vaa, updates } = parseAccumulatorUpdateData(
1515
Buffer.from(TEST_ACCUMULATOR_UPDATE_DATA, "base64")
1616
);
1717

@@ -73,7 +73,7 @@ describe("Test parse accumulator update", () => {
7373
).updates.length
7474
).toBe(3);
7575

76-
const { vaa, updates } = parseAccumulatorUpdateData(
76+
const { vaa: _vaa, updates } = parseAccumulatorUpdateData(
7777
sliceAccumulatorUpdateData(
7878
Buffer.from(TEST_ACCUMULATOR_UPDATE_DATA, "base64"),
7979
1,

0 commit comments

Comments
 (0)