Skip to content

Repo: Raise TSConfig lib/target support range to match ESLint's #9028

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.repo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions