2 * @fileoverview Rule to disallow use of new operator with the `require` function
3 * @author Wil Moore III
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 module.exports = function(context) {
16 "NewExpression": function(node) {
17 if (node.callee.type === "Identifier" && node.callee.name === "require") {
18 context.report(node, "Unexpected use of new with require.");