False positive of `regexp/no-unused-capturing-group` with `hasIndices`
sapphi-red opened this issue · comments
Information:
- ESLint version: 8.54.0
eslint-plugin-regexp
version: 2.1.1
Description
const re = /(foo)/d
console.log(re.exec('foo').indices[1])
In this case, the capture group is used by .indices[1]
. But the rule reports the error.
Thank you for posting this issue.
I'll fix that.