-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintnew syntaxThis issue is related to new syntax that has reached stage 4This issue is related to new syntax that has reached stage 4
Description
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.
- Ecma262 update: Normative: add RegExp Match Indices tc39/ecma262#1713
- Acorn update: Implement ES2022 RegExp Match Indices acornjs/acorn#1039
-
regexpp
update: Supports ES2022 RegExp Match Indices mysticatea/regexpp#22 -
espree
update: Update: Support top-level await and regexp match indices js#505 -
eslint
update: Breaking: support new regex d flag (fixes #14640) #14653
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.
aladdin-add, RunDevelopment and sindresorhus
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintnew syntaxThis issue is related to new syntax that has reached stage 4This issue is related to new syntax that has reached stage 4
Type
Projects
Status
Complete