UNPKG

eslint-plugin-regexp

Version:

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

7 lines (6 loc) 443 B
import type { Rule } from "eslint"; import type { JSONSchema4 } from "json-schema"; import type { CharRange } from "refa"; export declare function getAllowedCharRanges(allowedByRuleOption: string | readonly string[] | undefined, context: Rule.RuleContext): readonly CharRange[]; export declare function getAllowedCharValueSchema(): JSONSchema4; export declare function inRange(ranges: Iterable<CharRange>, min: number, max?: number): boolean;