Babel's modular runtime helpers that provide transpilation support for modern JavaScript features
94
{
"context": "This evaluation assesses the engineer's ability to use @babel/core's parserOverride capability to implement a custom parser within a Babel plugin. The focus is specifically on proper usage of the parserOverride API, correct parser delegation patterns, and appropriate integration with Babel's parsing infrastructure.",
"type": "weighted_checklist",
"checklist": [
{
"name": "parserOverride implementation",
"description": "The plugin correctly implements a parserOverride function that accepts (code, options, parse) parameters and returns an AST",
"max_score": 30
},
{
"name": "Default parser delegation",
"description": "The custom parser correctly calls the original parse function (the third parameter) to leverage Babel's default parser for standard JavaScript syntax",
"max_score": 25
},
{
"name": "Plugin structure",
"description": "The plugin exports a function that accepts the Babel api parameter and returns an object with the parserOverride property",
"max_score": 15
},
{
"name": "AST manipulation",
"description": "The implementation correctly modifies or extends the AST returned from the default parser to include custom metadata from special comments",
"max_score": 20
},
{
"name": "Integration correctness",
"description": "The parserOverride returns an AST structure that is compatible with Babel's transformation pipeline (maintains proper AST node types and structure)",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--runtimedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10