fix(gate): use the oxlint disable form for the compile-only check

This commit is contained in:
Huanqi Cao
2026-08-11 19:07:56 +08:00
parent e56b1ccab2
commit 234a1b37c1
+1 -1
View File
@@ -428,7 +428,7 @@ export function metadataExpressionErrors(entry: Record<string, unknown>, path: s
function disabledExpressionProblem(expression: string): string | undefined {
try {
// Compilation only — the constructor never executes the body.
// eslint-disable-next-line no-new-func
// oxlint-disable-next-line typescript/no-implied-eval
new Function(`return (${expression})`)
return undefined
} catch (error) {