Babel plugin that compiles ES2015 computed properties to ES5-compatible code
88
{
"context": "This criteria evaluates how well the engineer uses @babel/plugin-transform-computed-properties to configure different transformation modes. The focus is on understanding and correctly applying the plugin's loose option to achieve different transformation strategies.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Plugin import",
"description": "Correctly imports or requires @babel/plugin-transform-computed-properties",
"max_score": 10
},
{
"name": "Standard mode configuration",
"description": "Configures the plugin with default settings (loose: false or no loose option) for standard mode to produce spec-compliant transformations using Object.defineProperty()",
"max_score": 25
},
{
"name": "Relaxed mode configuration",
"description": "Configures the plugin with loose: true option for relaxed mode to produce simplified transformations using direct property assignment",
"max_score": 25
},
{
"name": "Babel config structure",
"description": "Returns a properly structured Babel configuration object with a plugins array containing the plugin and its options",
"max_score": 20
},
{
"name": "Mode validation",
"description": "Validates the mode parameter and throws an appropriate error for invalid modes",
"max_score": 10
},
{
"name": "Output verification",
"description": "The configurations produce the expected transformation outputs (spec-compliant for standard, simplified for relaxed) when used with Babel",
"max_score": 10
}
]
}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