CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--helper-module-imports

Babel helper functions for inserting module loads

Overall
score

99%

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how effectively the engineer uses @babel/core's JavaScript parsing APIs (parse, parseSync, or parseAsync) to parse JavaScript code into an AST and extract information from it. The focus is entirely on proper usage of @babel/core's parsing capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Parsing API usage",
      "description": "Uses @babel/core parsing functions (parse, parseSync, or parseAsync) to convert JavaScript source code into an Abstract Syntax Tree",
      "max_score": 30
    },
    {
      "name": "Async API usage",
      "description": "Correctly uses parseAsync (or the async variant) and properly handles the Promise it returns, matching the async function signature in the API",
      "max_score": 20
    },
    {
      "name": "AST traversal",
      "description": "Properly traverses the AST nodes returned by the parser to locate function declarations (e.g., accessing program.body, checking node types like FunctionDeclaration)",
      "max_score": 25
    },
    {
      "name": "Error handling",
      "description": "Allows parsing errors from @babel/core to propagate or wraps them appropriately, ensuring invalid code throws clear errors as specified",
      "max_score": 15
    },
    {
      "name": "Parser options",
      "description": "Configures the parser with appropriate options to handle modern JavaScript syntax (e.g., setting sourceType, enabling necessary parser plugins)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel--helper-module-imports

tile.json