Bug: no-invalid-regexp
not reporting repeted flag allowed by allowConstructorFlags
#18748
Closed
1 task done
no-invalid-regexp
not reporting repeted flag allowed by allowConstructorFlags
#18748
Environment
Node version: latest
npm version: latest
Local ESLint version: latest
Global ESLint version: no
Operating System: windows
What parser are you using?
Default (Espree)
What did you do?
What did you expect to happen?
report
aa
as invalid flag.What actually happened?
rule doesn't report this as invalid supplied flag as it does with other predefined flags.
Link to Minimal Reproducible Example
https://eslint.org/play/#eyJ0ZXh0IjoiLyplc2xpbnQgbm8taW52YWxpZC1yZWdleHA6IFtcImVycm9yXCIsIHsgXCJhbGxvd0NvbnN0cnVjdG9yRmxhZ3NcIjogW1wiYVwiXSB9XSovXG5cbm5ldyBSZWdFeHAoJy4nLCAnYWEnKTsiLCJvcHRpb25zIjp7InJ1bGVzIjp7fSwibGFuZ3VhZ2VPcHRpb25zIjp7InNvdXJjZVR5cGUiOiJtb2R1bGUiLCJwYXJzZXJPcHRpb25zIjp7ImVjbWFGZWF0dXJlcyI6e319fX19
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: