UNPKG

@atlaskit/eslint-plugin-no-lookahead-lookbehind-regexp

Version:

Fork of https://github.com/JonasBa/eslint-plugin-no-lookahead-lookbehind-regexp

8 lines (7 loc) 645 B
import { Rule } from 'eslint'; import type * as ESTree from 'estree'; import { AnalyzeOptions, analyzeRegExpForLookaheadAndLookbehind } from '../helpers/analyzeRegExpForLookaheadAndLookbehind'; import { collectUnsupportedTargets } from '../helpers/caniuse'; type NodeToReport = (ESTree.Literal & Rule.NodeParentExtension) | (ESTree.TemplateLiteral & Rule.NodeParentExtension); export declare function createContextReport(node: NodeToReport, context: Rule.RuleContext, violators: ReturnType<typeof analyzeRegExpForLookaheadAndLookbehind>, targets: ReturnType<typeof collectUnsupportedTargets>, config: AnalyzeOptions['config']): void; export {};