Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Replaced ts check functions with direct equality checks against synta…
Browse files Browse the repository at this point in the history
…xkind values.
  • Loading branch information
vmk1vmk committed Mar 22, 2019
1 parent 3874033 commit d91e52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/noAnyRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function walk(ctx: Lint.WalkContext<Options>) {

function isRestParameterArrayType(anyTypeNode: ts.Node) {
return (
ts.isArrayTypeNode(anyTypeNode.parent) &&
ts.isParameter(anyTypeNode.parent.parent) &&
anyTypeNode.parent.kind === ts.SyntaxKind.ArrayType &&
anyTypeNode.parent.parent.kind === ts.SyntaxKind.Parameter &&
anyTypeNode.parent.parent.getChildAt(0).kind === ts.SyntaxKind.DotDotDotToken
);
}

0 comments on commit d91e52b

Please sign in to comment.