UNPKG

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

Version:

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

6 lines (5 loc) 423 B
import { Rule } from 'eslint'; import type { Literal, RegExpLiteral } from 'estree'; export declare function isRegExpLiteral(literal: Literal & Rule.NodeParentExtension): literal is RegExpLiteral & Rule.NodeParentExtension; export declare function isStringLiteralRegExp(literal: Literal & Rule.NodeParentExtension): boolean; export declare function isBinaryExpression(literal: Literal & Rule.NodeParentExtension): boolean;