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 df0ad14
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -75,6 +75,10 @@ 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 df0ad14

Please sign in to comment.