]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-new-object.js
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"
26 preferLiteral
: "The object literal notation {} is preferrable."
35 if (node
.callee
.name
=== "Object") {
38 messageId
: "preferLiteral"