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 criteria evaluates the engineer's understanding and usage of the @babel/plugin-transform-computed-properties package, specifically focusing on the setComputedProperties assumption feature. The evaluation assesses whether the engineer correctly constructs Babel configurations with the plugin, properly handles the assumptions object, and accurately checks for the setComputedProperties assumption setting.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Plugin inclusion",
"description": "The buildBabelConfig function includes '@babel/plugin-transform-computed-properties' in the returned configuration's plugins array",
"max_score": 25
},
{
"name": "Assumptions structure",
"description": "The buildBabelConfig function correctly places the assumptions object (including setComputedProperties) at the top level of the Babel configuration object, not nested within plugin options",
"max_score": 25
},
{
"name": "Assumption propagation",
"description": "The buildBabelConfig function properly passes through the setComputedProperties value from the input options.assumptions to the output config.assumptions",
"max_score": 20
},
{
"name": "Assumption detection",
"description": "The isRelaxedMode function correctly checks for the setComputedProperties assumption by accessing config.assumptions.setComputedProperties",
"max_score": 20
},
{
"name": "Default handling",
"description": "The implementation correctly handles cases where assumptions or setComputedProperties are undefined, treating them as false (strict mode)",
"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