CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--runtime

Babel's modular runtime helpers that provide transpilation support for modern JavaScript features

94

1.18x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses @babel/core's file transformation APIs (transformFileSync and transformFileAsync) to build a file transformation tool. The focus is on correct API usage, proper configuration of plugins/presets, and handling of transformation results.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "transformFileSync usage",
      "description": "Uses @babel/core's transformFileSync function to synchronously transform JavaScript files from disk",
      "max_score": 20
    },
    {
      "name": "transformFileAsync usage",
      "description": "Uses @babel/core's transformFileAsync function to asynchronously transform JavaScript files from disk, properly handling the returned Promise",
      "max_score": 20
    },
    {
      "name": "Plugin configuration",
      "description": "Correctly configures plugins in the options object passed to transform functions, such as @babel/plugin-transform-arrow-functions for arrow function transformation",
      "max_score": 15
    },
    {
      "name": "Preset configuration",
      "description": "Correctly configures presets in the options object, such as @babel/preset-react for JSX transformation",
      "max_score": 15
    },
    {
      "name": "Result code access",
      "description": "Accesses the transformed code from the result object's code property returned by transform functions",
      "max_score": 10
    },
    {
      "name": "Source map handling",
      "description": "Configures sourceMaps option in the transformation options and accesses the map property from the result object",
      "max_score": 10
    },
    {
      "name": "Error handling",
      "description": "Properly handles transformation errors (syntax errors, file not found, etc.) and extracts error information from the thrown error object",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel--runtime

tile.json