arui-presets-lint
Version:
Config files for arui-apps
14 lines (13 loc) • 517 B
TypeScript
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;
};
}