UNPKG

eslint-codemod-utils

Version:

A collection of AST helper functions for more complex ESLint rule fixes.

12 lines (11 loc) 345 B
import type * as eslint from 'eslint'; import type { TSESTree } from '@typescript-eslint/types'; /** * @example * ```tsx * // this is the search comment * const findThisNode = 10 * ^^^^^^^^^^^^^^^^^^^^^^^ * ``` */ export declare function getNodeAfterComment(source: eslint.SourceCode, comment: TSESTree.Comment): eslint.Rule.Node | null;