CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-eslint-plugin-regexp

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

82

0.96x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates whether the solution leverages eslint-plugin-regexp to enforce ReDoS protection by detecting super-linear backtracking and move-based regex patterns. Scoring looks only at correct use of the plugin's performance rules, the configuration that enables them, and mapping their results into the required API outputs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Backtracking rule",
      "description": "Enables and runs the plugin rule regexp/no-super-linear-backtracking so that the unsafe /(a+)+$/ pattern is reported through the lint flow rather than custom detection.",
      "max_score": 30
    },
    {
      "name": "Move rule",
      "description": "Enables and runs the plugin rule regexp/no-super-linear-move so that the unsafe /(ab|a?b)+$/ pattern is reported through the lint flow rather than custom detection.",
      "max_score": 30
    },
    {
      "name": "Plugin wiring",
      "description": "Registers eslint-plugin-regexp with ESLint (e.g., via plugins entry or the plugin's provided config) so linting the provided file paths actually invokes the regex rules.",
      "max_score": 20
    },
    {
      "name": "Result mapping",
      "description": "Translates lint findings from regexp/no-super-linear-backtracking and regexp/no-super-linear-move into issues entries with the correct kind values, and sets ok to false when either rule reports problems.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-eslint-plugin-regexp

tile.json