Babel plugin that transforms ECMAScript object rest and spread syntax into ES5-compatible code.
85
Quality
Pending
Does it follow best practices?
Impact
85%
1.06xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses Babel's assumptions system to optimize build configurations. It focuses on proper usage of @babel/core configuration API, the assumptions configuration option, and appropriate integration with target environment specifications.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Babel Core Import",
"description": "Correctly imports and uses @babel/core package for transformation or configuration loading (e.g., using transformSync, transformAsync, loadOptions, or similar APIs)",
"max_score": 10
},
{
"name": "Assumptions Configuration",
"description": "Properly configures the 'assumptions' option in Babel configuration object with at least 3 different assumption keys (e.g., setPublicClassFields, privateFieldsAsProperties, noDocumentAll, etc.)",
"max_score": 25
},
{
"name": "Parser Integration",
"description": "Uses @babel/parser (via parse or parseExpression) to analyze source code for determining which assumptions are safe to enable",
"max_score": 15
},
{
"name": "Target Configuration",
"description": "Correctly configures the 'targets' option in Babel configuration to specify target browsers/environments",
"max_score": 10
},
{
"name": "Config Structure",
"description": "Returns properly structured Babel configuration objects with correct structure (containing assumptions, targets, and other valid Babel config options)",
"max_score": 15
},
{
"name": "Code Analysis Logic",
"description": "Implements logic to analyze parsed AST to detect patterns (e.g., class usage, specific operators) that inform which assumptions can be safely enabled",
"max_score": 15
},
{
"name": "Reporting Mechanism",
"description": "Provides reasoning or metadata about selected assumptions, demonstrating understanding of what each assumption does and why it was chosen",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10