eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
9 lines (8 loc) • 381 B
TypeScript
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;