Skip to content

[ESLint] enable unicorn/prefer-dom-node-remove - #3122

Merged
dimaMachina merged 2 commits into
graphql:mainfrom
dimaMachina:unicorn/prefer-dom-node-remove
Apr 14, 2023
Merged

dimaMachina merged 2 commits into
graphql:mainfrom
dimaMachina:unicorn/prefer-dom-node-remove

Conversation

@dimaMachina

@dimaMachina dimaMachina commented Mar 31, 2023 •

Copy link
Copy Markdown
Collaborator

Enforces the use of, for example, child.remove(); over child.parentNode.removeChild(child);. The DOM function Node#remove() is preferred over the indirect removal of an object with Node#removeChild().

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-remove.md

@changeset-bot

changeset-bot Bot commented Mar 31, 2023 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 45bc08d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dimaMachina
dimaMachina marked this pull request as ready for review April 1, 2023 03:05
@dimaMachina
dimaMachina merged commit e55be41 into graphql:main Apr 14, 2023
@dimaMachina
dimaMachina deleted the unicorn/prefer-dom-node-remove branch April 14, 2023 18:24
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