Skip to content

New Rule Proposal: no-regexp-d-flag #68

@ota-meshi

Description

@ota-meshi

Please describe what the rule should do:

Disallows RegExp d flag added in ES2022.

https://github.com/tc39/proposal-regexp-match-indices

Provide 2-3 code examples that this rule will warn about:

const re1 = /a+(?<Z>z)?/d;

/./d;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions