Babel plugin that compiles ES2015 computed properties to ES5-compatible code
88
{
"context": "This criteria evaluates how effectively the engineer uses @babel/plugin-transform-computed-properties and @babel/core to transform JavaScript code with computed method properties into ES5-compatible code. The focus is on proper integration of the Babel plugin and correct usage of the transformation API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Babel Core Integration",
"description": "Uses @babel/core's transform or transformSync method to parse and transform the input code",
"max_score": 25
},
{
"name": "Plugin Registration",
"description": "Correctly registers @babel/plugin-transform-computed-properties in the Babel configuration (plugins array)",
"max_score": 25
},
{
"name": "Plugin Options Handling",
"description": "Passes the loose option from the function parameters to the plugin configuration (e.g., [plugin, { loose: options.loose }])",
"max_score": 20
},
{
"name": "Code Output Extraction",
"description": "Extracts and returns the transformed code from the Babel transformation result (accessing result.code property)",
"max_score": 15
},
{
"name": "Computed Method Support",
"description": "The implementation successfully transforms computed method properties (verified by test cases passing)",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel-plugin-transform-es2015-computed-propertiesdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10