Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer Object.hasOwn over Object#hasOwnProperty #1818

Open
ericcornelissen opened this issue Dec 15, 2024 · 0 comments
Open

Prefer Object.hasOwn over Object#hasOwnProperty #1818

ericcornelissen opened this issue Dec 15, 2024 · 0 comments
Labels
breaking change Changes that are not backwards compatible pending This cannot be worked on yet refactor Changes existing code without changing functionality

Comments

@ericcornelissen
Copy link
Owner

Caused by #1815 (comment)
Relates to #1814

Summary

Update the code base to move to using Object.hasOwn instead of Object.prototype.hasOwnProperty following the ESlint rule prefer-object-has-own and enforce this using ESLint.

This is currently pending because Object.hasOwn was not yet introduced in Node.js v14.18.0, which is still supported by this package.

@ericcornelissen ericcornelissen added breaking change Changes that are not backwards compatible pending This cannot be worked on yet refactor Changes existing code without changing functionality labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Changes that are not backwards compatible pending This cannot be worked on yet refactor Changes existing code without changing functionality
Projects
None yet
Development

No branches or pull requests

1 participant