no-implied-eval
Configuration
rslint.config.ts
Rule Details
Disallow the use of eval()-like methods.
Passing a string as the first argument to setTimeout, setInterval, or execScript causes the string to be evaluated as JavaScript — a form of implied eval(). This rule flags such calls, whether made directly or through a global object reference (window, global, globalThis, or self).
Examples of incorrect code for this rule:
Examples of correct code for this rule: