Enable prefer-dom-node-dataset ESLint rule
What does this MR do and why?
This is the third attempt to enable the unicorn/prefer-dom-node-dataset
ESLint rule. Previous attempts have failed because we were using the .hasOwn
method which is not supported in older browsers and isn't properly polyfilled in our bundles. To make sure we're not breaking anything in older browsers, this MR re-introduces the changes but now relies on the well-supported .hasOwnProperty
method instead.
Screenshots or screen recordings
No visual change.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #34689 (closed)