CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-escodegen

ECMAScript code generator that transforms Mozilla's Parser API ASTs back into executable JavaScript code

95

1.07x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses escodegen's Mozilla-specific extension options, specifically the starlessGenerator configuration, to control generator function syntax in generated code.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import escodegen",
      "description": "The implementation correctly imports or requires the escodegen package",
      "max_score": 10
    },
    {
      "name": "Use generate function",
      "description": "The implementation uses escodegen.generate() as the core method for AST-to-code transformation",
      "max_score": 20
    },
    {
      "name": "Pass options object",
      "description": "The implementation correctly passes an options object as the second parameter to escodegen.generate()",
      "max_score": 15
    },
    {
      "name": "Configure moz option",
      "description": "The implementation uses the moz configuration object within the options to control Mozilla-specific behaviors",
      "max_score": 25
    },
    {
      "name": "Set starlessGenerator",
      "description": "The implementation specifically sets the moz.starlessGenerator property to control whether generator functions include the * token",
      "max_score": 25
    },
    {
      "name": "Return generated code",
      "description": "The implementation returns the string result from escodegen.generate() as the output",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-escodegen

tile.json