The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 17:00 UTC
chore(lint): enforce eslint/no-new (#25107)
Julius Marminge committed
Oct 25, 2026 at 18:18 UTC
3a1b3a77662355584db76ff7ad22addda511995f
2 files changed
+2
-1
apps/server/src/mcp/McpToolAccess.test.ts
+1
-1
@@ -165,7 +165,7 @@ export const refusedAtCompileTime = () => {
165
// @ts-expect-error a declaration built outside McpToolAccess
166
McpToolAccess.Declaration.make(unchecked);
167
// @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.
169
// @ts-expect-error a handlers layer built outside McpToolAccess
170
McpToolAccess.HandlersLayer.make(Layer.empty);
171
// @effect-diagnostics-next-line anyUnknownInErrorContext:off
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "eslint/no-new": "error",
220
"unicorn/no-useless-spread": "error",
221
"eslint/no-unused-vars": [
222
"error",