UNPKG

eslint-plugin-sonarjs

Version:
9 lines (8 loc) 381 B
import estree from 'estree'; import * as regexpp from '@eslint-community/regexpp'; import type { Rule } from 'eslint'; export declare function getParsedRegex(node: estree.Node, context: Rule.RuleContext): regexpp.AST.RegExpLiteral | null; export declare function getPatternFromNode(node: estree.Node, context: Rule.RuleContext): { pattern: string; flags: string; } | null;