---
title: "no-new-object"
description: "Disallow `new Object()` in favor of `{}`"
# Generated by src/codegen/lint-rule-docs.ts. Do not edit below this line.
plugin: "eslint"
aliases: ["eslint/no-new-object"]
kind: "suggestion"
category: null
default: "off"
fixable: "no"
typeAware: false
deprecated: true
---

`new Object()` creates the same empty object as `{}`. The literal is shorter and lets you list the properties in place.

ESLint has deprecated this rule. Use `no-object-constructor` instead, which also reports `Object()` without `new`.

## Examples

Reported:

{/* bad */}
```js
const headers = new Object();
headers.accept = "text/html";
```

Not reported:

{/* good */}
```js
const headers = { accept: "text/html" };
```
