Babel plugin that compiles ES2015 default and rest parameters to ES5-compatible code
91
{
"context": "This criteria evaluates how effectively the engineer uses @babel/core's high-level compilation API to transform JavaScript code. The focus is on correct usage of transformation functions, configuration with presets, source map generation, and error handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Core transformation API",
"description": "Uses @babel/core's main transformation functions (transform, transformSync, or transformAsync) to compile JavaScript code",
"max_score": 30
},
{
"name": "Preset configuration",
"description": "Configures @babel/preset-env in the presets array to enable target-based transformations",
"max_score": 25
},
{
"name": "Target specification",
"description": "Passes targets configuration to @babel/preset-env (via presets options) to control which transformations are applied based on browser environments",
"max_score": 20
},
{
"name": "Source map generation",
"description": "Enables source map generation using the sourceMaps option (or sourceMap) in the transformation configuration",
"max_score": 15
},
{
"name": "Error handling",
"description": "Properly catches and handles transformation errors from @babel/core, providing meaningful error messages from the BabelError object",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--plugin-transform-parametersdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10