UNPKG

@adguard/aglint

Version:

Universal adblock filter list linter.

18 lines (17 loc) 476 B
import { type PreProcessorCommentRule } from '@adguard/agtree'; import { type LinterRule } from '../common'; /** * Concreting the storage type definition (the linter only provides a general * form where the value type is unknown) */ interface Storage { /** * Array of all open if directives */ openIfs: PreProcessorCommentRule[]; } /** * Rule that checks if all if directives are closed */ export declare const IfClosed: LinterRule<Storage>; export {};