no-new-func
Configuration
rslint.config.ts
Rule Details
Disallows creating functions from strings using the Function constructor. Passing a string to the Function constructor requires the engine to parse that string, similar to eval.
Examples of incorrect code for this rule:
Examples of correct code for this rule: