2 * @fileoverview A rule to disallow calls to the Object constructor
3 * @author Matt DuVall <http://www.mattduvall.com/>
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description: "disallow `Object` constructors",
18 category: "Stylistic Issues",
20 url: "https://eslint.org/docs/rules/no-new-object"
31 if (node.callee.name === "Object") {
32 context.report({ node, message: "The object literal notation {} is preferrable." });