Skip to content

Enable prefer-dom-node-dataset ESLint rule

Paul Gascou-Vaillancourt requested to merge 34689-prefer-dataset into master

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.

Related to #34689 (closed)

Merge request reports