Skip to content

Update README.md#2837

Draft
Marcys wants to merge 1 commit intoairbnb:masterfrom
Marcys:master
Draft

Update README.md#2837
Marcys wants to merge 1 commit intoairbnb:masterfrom
Marcys:master

Conversation

@Marcys
Copy link
Copy Markdown

@Marcys Marcys commented Sep 27, 2023

Since ESLint v8.50.0 no-new-object is replaced by the no-object-constructor rule. (https://eslint.org/docs/latest/rules/no-new-object)

Since  ESLint v8.50.0 no-new-object is replaced by the no-object-constructor rule. (https://eslint.org/docs/latest/rules/no-new-object)
Comment thread README.md

<a name="objects--no-new"></a><a name="3.1"></a>
- [3.1](#objects--no-new) Use the literal syntax for object creation. eslint: [`no-new-object`](https://eslint.org/docs/rules/no-new-object)
- [3.1](#objects--no-new) Use the literal syntax for object creation. eslint: [`no-object-constructor`](https://eslint.org/docs/latest/rules/no-object-constructor)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep linking to both rules, since this config still uses no-new-object.

@ljharb ljharb marked this pull request as draft April 16, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants