tessl install tessl/npm-eslint-plugin-regexp@2.10.0ESLint plugin for finding RegExp mistakes and RegExp style guide violations.
Agent Success
Agent success rate when using this tile
82%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.96x
Baseline
Agent success rate without this tile
85%
Create a lint-style audit that blocks regular expressions with super-linear behavior. The audit must rely on the regex performance safeguards provided by the dependency to detect backtracking and move-based ReDoS risks rather than custom pattern parsing.
const r = /(a+)+$/; returns ok as false and includes an issue with kind "backtracking" referencing that file path @testconst r = /(ab|a?b)+$/; returns ok as false and includes an issue with kind "move" referencing that file path @test/^a+$/ and /^(ab?)+c$/ returns ok as true with an empty issues list @test@generates
export type IssueKind = 'backtracking' | 'move';
export interface RegexIssue {
file: string;
pattern: string;
kind: IssueKind;
message: string;
}
export interface RegexSafetyResult {
ok: boolean;
issues: RegexIssue[];
}
export interface AuditOptions {
format?: 'text' | 'json';
cwd?: string;
}
export async function runRegexSafetyAudit(paths: string[], options?: AuditOptions): Promise<RegexSafetyResult>;
export async function emitReport(result: RegexSafetyResult, format?: 'text' | 'json'): Promise<string>;Provides regex-focused lint rules that detect super-linear backtracking and move issues in regular expressions.