fix(gate): use the oxlint disable form for the compile-only check
This commit is contained in:
@@ -428,7 +428,7 @@ export function metadataExpressionErrors(entry: Record<string, unknown>, path: s
|
|||||||
function disabledExpressionProblem(expression: string): string | undefined {
|
function disabledExpressionProblem(expression: string): string | undefined {
|
||||||
try {
|
try {
|
||||||
// Compilation only — the constructor never executes the body.
|
// 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})`)
|
new Function(`return (${expression})`)
|
||||||
return undefined
|
return undefined
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user