disallow RegExp named capture groups (es/no-regexp-named-capture-groups)

This rule reports ES2018 RegExp named capture groups as errors.

Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-regexp-named-capture-groups: error */ const r1 = /(?<a>b)c/
Now loading...

📚 References

Last Updated: 8/27/2019, 11:29:02 AM