UNPKG

eslint-etc

Version:

Utils for ESLint TypeScript rules

11 lines (8 loc) 333 B
/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/eslint-etc */ import { TSESTree as es } from "@typescript-eslint/experimental-utils"; export function getParent(node: es.Node): es.Node | undefined { return (node as any).parent; }