Skip to content

Add Support for RegExp match indices #14640

@ota-meshi

Description

@ota-meshi

The version of ESLint you are using.

7.27.0

The problem you want to solve.

Support RegExp match indices officially, as it has reached stage-4.
refs:
https://github.com/tc39/proposals/blob/master/finished-proposals.md
https://github.com/tc39/proposal-regexp-match-indices

Your take on the correct solution to problem.

We probably need to add d to the validFlags of the no-invalid-regexp rule.
We probably need to add d to the regex variable of the no-empty-character-class rule.

Are you willing to submit a pull request to implement this change?

I will submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintnew syntaxThis issue is related to new syntax that has reached stage 4

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions