Babel plugin that compiles ES2015 unicode string and number literals to ES5
86
{
"context": "This evaluation assesses how well the engineer uses @babel/plugin-transform-literals and @babel/core to build a multi-plugin transformation pipeline. The focus is on correct plugin composition, proper use of Babel's transformation API, and demonstrating that plugins work safely together without conflicts.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses @babel/core",
"description": "Solution imports and uses @babel/core for code transformation (e.g., babel.transform or babel.transformSync)",
"max_score": 20
},
{
"name": "Uses transform-literals plugin",
"description": "Solution includes @babel/plugin-transform-literals in the plugin array passed to Babel",
"max_score": 25
},
{
"name": "Multi-plugin composition",
"description": "Solution correctly uses multiple Babel plugins together (at least 3 plugins) in the transformation pipeline",
"max_score": 20
},
{
"name": "Correct plugin configuration",
"description": "Plugins are configured correctly in the Babel options object (e.g., in the 'plugins' array within the options passed to transform)",
"max_score": 15
},
{
"name": "Order-independent execution",
"description": "Implementation demonstrates that plugins work correctly regardless of ordering (either through tests or configuration)",
"max_score": 10
},
{
"name": "Correct output format",
"description": "Solution correctly extracts and returns the transformed code string from Babel's transformation result (e.g., result.code)",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel-plugin-transform-es2015-literalsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10