2 * @fileoverview Rule to flag use of eval() statement
3 * @author Nicholas C. Zakas
4 * @copyright 2015 Mathias Schreck. All rights reserved.
5 * @copyright 2013 Nicholas C. Zakas. All rights reserved.
10 //------------------------------------------------------------------------------
12 //------------------------------------------------------------------------------
14 module.exports = function(context) {
17 "CallExpression": function(node) {
18 if (node.callee.name === "eval") {
19 context.report(node, "eval can be harmful.");