Function getNonJsdocComment

    • Retrieves the comment preceding a given node.

      Parameters

      • sourceCode: SourceCode

        The ESLint SourceCode

      • node: ESLintOrTSNode

        The AST node to get the comment for.

      • settings: {
            maxLines: number;
            minLines: number;
            [name: string]: any;
        }

        The settings in context

        • [name: string]: any
        • maxLines: number
        • minLines: number

      Returns Token | null

      The Block comment token containing the JSDoc comment for the given node or null if not found.