2 * @fileoverview Rule to flag when using new Function
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 module.exports = function(context) {
16 "NewExpression": function(node) {
17 if (node.callee.name === "Function") {
18 context.report(node, "The Function constructor is eval.");