[JavaScript] Never use `eval()`

#1

Never use eval() or new Function(), as both are potential vectors for abuse.

Reasoning: Evaluation of arbitrary code is almost always a bad idea.

Reference: Airbnb JavaScript Style Guide eval() and Function, Google JavaScript Style Guide, ESLint config no-eval

0 Likes