From 67c438cd4c06fe7226d1e542e38cf919edbbf29c Mon Sep 17 00:00:00 2001 From: Marla Schulz Date: Wed, 19 Oct 2022 16:55:25 -0600 Subject: [PATCH] Expand no-simple-type-checking-assertions regex, see: https://github.com/phetsims/mean-share-and-balance/issues/102 --- eslint/rules/no-simple-type-checking-assertions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint/rules/no-simple-type-checking-assertions.js b/eslint/rules/no-simple-type-checking-assertions.js index beb60be2..6084c4fa 100644 --- a/eslint/rules/no-simple-type-checking-assertions.js +++ b/eslint/rules/no-simple-type-checking-assertions.js @@ -21,7 +21,7 @@ module.exports = function( context ) { const forbiddenTextObject = [ { id: 'asserting values are instanceof or typeof in typescript is redundant', - regex: /assert && assert\((( \w+ instanceof \w+)|( typeof \w+ === '\w+'))( \)|,)/ + regex: /assert && assert\((( \w+ instanceof \w+)|( typeof \w+ === '\w+'))/ } ];