@atlaskit/eslint-plugin-no-lookahead-lookbehind-regexp
Version:
Fork of https://github.com/JonasBa/eslint-plugin-no-lookahead-lookbehind-regexp
18 lines (17 loc) • 827 B
TypeScript
import { AnalyzeOptions, analyzeRegExpForLookaheadAndLookbehind } from './analyzeRegExpForLookaheadAndLookbehind';
type BrowserTarget = {
target: string;
browser: string;
version: string;
};
export declare function collectBrowserTargets(configPath: string, config?: {
production: string[];
development: string[];
} | Array<string> | string): {
targets: BrowserTarget[];
hasConfig: boolean;
};
export declare function collectUnsupportedTargets(id: string, targets: BrowserTarget[]): BrowserTarget[];
export declare function resolveCaniUseBrowserTarget(target: string): string;
export declare function formatLinterMessage(violators: ReturnType<typeof analyzeRegExpForLookaheadAndLookbehind>, targets: ReturnType<typeof collectUnsupportedTargets>, config: AnalyzeOptions['config']): string;
export {};