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;