ts-codemod-lib
    Preparing search index...
    • Checks if a given ts-morph Node is immediately preceded by an ignore-next-line comment, optionally filtered by transformer name(s).

      Parameters

      • node: Node

        The ts-morph Node to check.

      • OptionaltransformerName: string

        Optional transformer name to check for specific ignore directive. If provided, only ignores if the comment specifies this transformer. Supports ESLint-style syntax like: - // transformer-ignore-next-line (ignores all transformers) - // transformer-ignore-next-line append-as-const (specific transformer) - // transformer-ignore-next-line append-as-const, replace-any-with-unknown (multiple transformers) - Also accepts ts-codemod-ignore-next-line, codemod-ignore-next-line, transform-ignore-next-line

      Returns boolean

      True if the node is preceded by the ignore comment on the immediately previous line, false otherwise.