Skip to content

Commit

Permalink
Manually merge "allowAny" option
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichb committed Apr 14, 2020
1 parent 27ed61f commit 97be444
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -75,6 +75,13 @@ export default util.createRule<Options, MessageId>({
return true;
}

if (
util.isTypeFlagSet(type, ts.TypeFlags.Any) &&
options.allowAny
) {
return true;
}

return false;
}

Expand Down

0 comments on commit 97be444

Please sign in to comment.