WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 808f914

Browse files
committed
fix: resolve remaining lint and build issues
- Replace 'any' type with 'Record<string, unknown>' in server.test.ts - Remove unused eslint-disable comment - Change module from 'ESNext' to 'NodeNext' to match moduleResolution All CI checks now pass: format, lint, build, and test.
1 parent b07c9cb commit 808f914

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mcp-server/src/server.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ describe("MCP Server Integration", () => {
170170
describe("Parameter Validation", () => {
171171
it("should validate command parameter exists", () => {
172172
const args = {};
173-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
174173
const isValid =
175-
"command" in args && typeof (args as any).command === "string";
174+
"command" in args &&
175+
typeof (args as Record<string, unknown>).command === "string";
176176
expect(isValid).toBe(false);
177177
});
178178

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* Basic Options */
44
"target": "ES2022",
55
"lib": ["ES2022"],
6-
"module": "ESNext",
6+
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"incremental": true,
99
"declaration": true,

0 commit comments

Comments
 (0)