UNPKG

@code-pushup/eslint-plugin

Version:

Code PushUp plugin for detecting problems in source code using ESLint.📋

14 lines (13 loc) • 506 B
import type { Linter, Rule } from 'eslint'; export type RuleData = { id: string; meta: Rule.RuleMetaData; options: unknown[] | undefined; }; export declare function parseRuleId(ruleId: string): { plugin?: string; name: string; }; export declare function isRuleOff(entry: Linter.RuleEntry<unknown[]>): boolean; export declare function optionsFromRuleEntry(entry: Linter.RuleEntry<unknown[]>): unknown[]; export declare function resolveRuleOptions(rule: RuleData): unknown[] | undefined;