Skip to content

Commit 2a3b664

Browse files
chore(lint): enforce eslint/no-new
1 parent c4c458d commit 2a3b664

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/mcp/McpToolAccess.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export const refusedAtCompileTime = () => {
165165
// @ts-expect-error a declaration built outside McpToolAccess
166166
McpToolAccess.Declaration.make(unchecked);
167167
// @ts-expect-error a declaration constructed directly
168-
new McpToolAccess.Declaration(unchecked);
168+
new McpToolAccess.Declaration(unchecked); // oxlint-disable-line eslint/no-new -- This type-contract test checks direct construction.
169169
// @ts-expect-error a handlers layer built outside McpToolAccess
170170
McpToolAccess.HandlersLayer.make(Layer.empty);
171171
// @effect-diagnostics-next-line anyUnknownInErrorContext:off

‎vite.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export default defineConfig({
216216
perf: "warn",
217217
},
218218
rules: {
219+
"eslint/no-new": "error",
219220
"unicorn/no-useless-spread": "error",
220221
"eslint/no-unused-vars": [
221222
"error",

0 commit comments

Comments
 (0)