File size: 855 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import type { AST } from 'svelte-eslint-parser';
import type { Linter } from 'eslint';
type Define = {
loc: AST.Position;
};
export declare class CommentDirectives {
private readonly reportUnusedDisableDirectives;
private readonly ruleId;
private readonly lineDisableDirectives;
private readonly blockDirectives;
constructor(options: {
reportUnusedDisableDirectives?: boolean;
ruleId: string;
});
filterMessages(messages: Linter.LintMessage[]): Linter.LintMessage[];
disableLine(line: number, rule: string | ((ruleId: string) => boolean), define: Define): void;
disableBlock(pos: AST.Position, rule: string | ((ruleId: string) => boolean), define: Define): void;
enableBlock(pos: AST.Position, rule: string | ((ruleId: string) => boolean), define: Define): void;
private block;
}
export {};
|