From 24f185868244eabb7c4174e94fc7a76d8306bde9 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 12 Aug 2019 01:27:34 +1200 Subject: [PATCH] chore(tsutils): remove unused `isAccessorNode` --- src/rules/tsUtils.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/rules/tsUtils.ts b/src/rules/tsUtils.ts index 1a5856318..2f3bc29eb 100644 --- a/src/rules/tsUtils.ts +++ b/src/rules/tsUtils.ts @@ -232,22 +232,6 @@ type AccessorNode = | StringNode | KnownIdentifier; -/** - * Checks if the given `node` is an `AccessorExpression` with the specific `value`. - * - * @param {Node} node - * @param {V} accessor - * - * @return {node is SpecificAccessorExpression} - * - * @template V - */ -export const isAccessorNode = ( - node: TSESTree.Node, - accessor: V, -): node is AccessorNode => - isIdentifier(node, accessor) || isStringNode(node, accessor); - interface ExpectCall extends TSESTree.CallExpression { callee: AccessorNode<'expect'>; parent: TSESTree.Node;