Babel plugin that transforms eval() calls containing string literals by parsing and compiling the string content at transform time
Overall
score
98%
{
"context": "This criteria evaluates how well the engineer uses Babel's API to transform advanced class features (private fields, private methods, and super calls) into backwards-compatible JavaScript. The focus is on proper usage of Babel's transformation APIs and relevant plugins.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Babel Core Usage",
"description": "Uses @babel/core's transformation API (transformSync, transform, or transformAsync) to parse and transform the input code",
"max_score": 25
},
{
"name": "Private Fields Plugin",
"description": "Configures and uses @babel/plugin-proposal-class-properties or @babel/plugin-transform-class-properties to transform private field syntax (#field)",
"max_score": 20
},
{
"name": "Private Methods Plugin",
"description": "Configures and uses @babel/plugin-proposal-private-methods or includes private method transformation as part of class properties plugin configuration",
"max_score": 20
},
{
"name": "Classes Plugin",
"description": "Uses @babel/plugin-transform-classes to handle class transformation including super calls in constructors and methods",
"max_score": 20
},
{
"name": "Plugin Configuration",
"description": "Properly configures plugin options in the plugins array passed to Babel's transform API, ensuring plugins are applied in the correct order",
"max_score": 10
},
{
"name": "Output Handling",
"description": "Correctly extracts and returns the transformed code from Babel's transformation result object (e.g., result.code)",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel-plugin-transform-evaldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10