diff --git a/lib/utils/ts-utils/ts-ast.js b/lib/utils/ts-utils/ts-ast.js index 1021b4baf..c33e66220 100644 --- a/lib/utils/ts-utils/ts-ast.js +++ b/lib/utils/ts-utils/ts-ast.js @@ -400,9 +400,6 @@ function inferRuntimeType(context, node, checked = new Set()) { return ['Number'] } } - if (node.literal.value instanceof RegExp) { - return ['RegExp'] - } } return inferRuntimeTypeFromTypeNode( context,