Skip to content

Commit

Permalink
Expand no-simple-type-checking-assertions regex, see: phetsims/mean-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas authored and zepumph committed Oct 22, 2024
1 parent 74ab066 commit 67c438c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint/rules/no-simple-type-checking-assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+'))/
}
];

Expand Down

0 comments on commit 67c438c

Please sign in to comment.