UNPKG

arui-presets-lint

Version:
14 lines (13 loc) 517 B
import { type TSESTree } from '@typescript-eslint/utils'; import { type DirectiveData, type DirectiveKind } from '../types/index.js'; export declare class CommentValidator { private readonly ignoredDirectives; private readonly allComments; constructor(ignoredDirectives: DirectiveKind[], allComments: TSESTree.Comment[]); private getMeaningfulAboveComment; validate(comment: TSESTree.Comment): { needsReport: boolean; messageId: string; directive?: DirectiveData; }; }