CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-es2015-computed-properties

Babel plugin that compiles ES2015 computed properties to ES5-compatible code

88

1.07x
Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation assesses how effectively the engineer uses @babel/plugin-transform-computed-properties to transform JavaScript code with computed properties to ES5-compatible syntax. The focus is on proper plugin integration, configuration, and understanding of the transformation behavior for mixed property types.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Babel core integration",
      "description": "Uses @babel/core's transform or transformSync API to process the input code. Should import and invoke babel.transform() or babel.transformSync() with appropriate parameters.",
      "max_score": 25
    },
    {
      "name": "Plugin configuration",
      "description": "Correctly configures @babel/plugin-transform-computed-properties in the Babel plugins array. The plugin should be specified either as a string '@babel/plugin-transform-computed-properties' or as an array with the plugin name and options.",
      "max_score": 30
    },
    {
      "name": "Code output extraction",
      "description": "Properly extracts and returns the transformed code from Babel's transformation result. Should access the .code property from the transform result object.",
      "max_score": 20
    },
    {
      "name": "Mixed property handling",
      "description": "Demonstrates understanding that the plugin correctly handles objects with both regular and computed properties, maintaining property order. The implementation should not require special handling for mixed properties as the plugin handles this automatically.",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel-plugin-transform-es2015-computed-properties

tile.json