CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-eval

Babel plugin that transforms eval() calls containing string literals by parsing and compiling the string content at transform time

98

1.28x
Quality

Pending

Does it follow best practices?

Impact

98%

1.28x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how effectively the engineer uses Babel's RegExp transformation capabilities to handle modern regular expression features including Unicode property escapes, named capture groups, and regex flags for email validation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Unicode Property Escapes",
      "description": "Uses Unicode property escapes (e.g., \\p{L} or \\p{Letter}) in regular expressions to match letters from any script/language rather than hardcoding character ranges or using basic \\w patterns",
      "max_score": 35
    },
    {
      "name": "Named Capture Groups",
      "description": "Implements named capture groups using (?<name>...) syntax to extract username and domain parts from email addresses, making the extraction logic clear and maintainable",
      "max_score": 30
    },
    {
      "name": "Case-Insensitive Flag",
      "description": "Uses the 'i' flag on regular expressions to enable case-insensitive matching for email validation",
      "max_score": 15
    },
    {
      "name": "Babel Transformation",
      "description": "Properly configures and uses Babel to transform the modern RegExp features (e.g., using @babel/preset-env or RegExp-specific plugins like @babel/plugin-transform-unicode-property-regex or @babel/plugin-transform-named-capturing-groups-regex) to ensure compatibility with older JavaScript engines",
      "max_score": 20
    }
  ]
}

tile.json