UNPKG

eslint-codemod-utils

Version:

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

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