Babel plugin that transforms eval() calls containing string literals by parsing and compiling the string content at transform time
98
Pending
Does it follow best practices?
Impact
98%
1.28xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10