We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c2d6a commit e5b30d6Copy full SHA for e5b30d6
src/transpiler.ts
@@ -29,7 +29,7 @@ export function evaluateValue(expression: string): EvaluateReturn {
29
) {
30
const node = ast.program.body[0].declarations[0].init
31
if (node != null && (node.type === 'StringLiteral' || node.type === 'ObjectExpression')) {
32
- // eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-call
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval
33
const val = new Function(`return ${expression.trim()} `)() as unknown
34
ret.status = 'ok'
35
ret.value = val
0 commit comments