Babel plugin that compiles ES2015 computed properties to ES5-compatible code
88
Pending
Does it follow best practices?
Impact
88%
1.07xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This evaluation assesses how effectively the engineer uses @babel/plugin-transform-computed-properties to transform JavaScript code with computed properties to ES5-compatible syntax. The focus is on proper plugin integration, configuration, and understanding of the transformation behavior for mixed property types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Babel core integration",
"description": "Uses @babel/core's transform or transformSync API to process the input code. Should import and invoke babel.transform() or babel.transformSync() with appropriate parameters.",
"max_score": 25
},
{
"name": "Plugin configuration",
"description": "Correctly configures @babel/plugin-transform-computed-properties in the Babel plugins array. The plugin should be specified either as a string '@babel/plugin-transform-computed-properties' or as an array with the plugin name and options.",
"max_score": 30
},
{
"name": "Code output extraction",
"description": "Properly extracts and returns the transformed code from Babel's transformation result. Should access the .code property from the transform result object.",
"max_score": 20
},
{
"name": "Mixed property handling",
"description": "Demonstrates understanding that the plugin correctly handles objects with both regular and computed properties, maintaining property order. The implementation should not require special handling for mixed properties as the plugin handles this automatically.",
"max_score": 25
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10