[restrict-template-expressions] add option to allow regular expressions #3671
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Since
RegExp
defines.toString()
, I would expect that there would be options to allow printing them similar toallowBoolean
.Actual Result
No way to make this allowed without disabling the rule.
Additional Info
Context: hoping to enable this internally for #3278.
Versions
@typescript-eslint/eslint-plugin
4.28.5
@typescript-eslint/parser
4.28.5
TypeScript
4.3.5
ESLint
7.27.0
node
16.6.0
The text was updated successfully, but these errors were encountered: