Closed
Description
Suggestion
ESLint uses Object.hasOwn()
(e.g. in lib/rules/prefer-object-has-own
). That's a good sign that we should be able to use it too!
But, our TSConfig lib range is only up to "ES2021"
right now. That doesn't allow Object.hasOwn
. Which makes me think that we should upgrade our lib
and/or target
in our TSConfigs to match ESLint's to at least... "ES2022"
? Investigation required.
Note: please target this against the v8
branch. Just to be safe, let's treat it as a followup to #8929 -> #8973.
💖