UNPKG

eslint-plugin-regexp

Version:

ESLint plugin for finding RegExp mistakes and RegExp style guide violations.

6 lines (5 loc) 337 B
/// <reference types="@eslint-community/regexpp" /> import type { RegExpLiteral, Pattern } from "@eslint-community/regexpp/ast"; import type { Rule } from "eslint"; import type { Expression } from "estree"; export declare function getRegExpNodeFromExpression(node: Expression, context: Rule.RuleContext): RegExpLiteral | Pattern | null;