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-3/

{
  "context": "This criteria evaluates how well the engineer uses @babel/plugin-transform-computed-properties to transpile ES2015 computed properties to ES5-compatible code. The focus is on correct plugin configuration, integration with Babel's transformation API, and proper handling of the loose mode option.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Babel core integration",
      "description": "Uses @babel/core's transform or transformSync API to process the input code",
      "max_score": 20
    },
    {
      "name": "Plugin configuration",
      "description": "Correctly includes @babel/plugin-transform-computed-properties in the Babel plugins array configuration",
      "max_score": 25
    },
    {
      "name": "Basic transformation",
      "description": "Successfully transforms objects with single computed properties (e.g., { [expr]: value }) into ES5-compatible code",
      "max_score": 15
    },
    {
      "name": "Multiple properties",
      "description": "Correctly handles objects with multiple computed properties while maintaining property definition order",
      "max_score": 15
    },
    {
      "name": "Mixed properties",
      "description": "Properly preserves regular properties in objects that contain both regular and computed properties",
      "max_score": 10
    },
    {
      "name": "Loose mode option",
      "description": "Correctly passes the loose option to @babel/plugin-transform-computed-properties (e.g., as ['@babel/plugin-transform-computed-properties', { loose: true }]) to control transformation mode",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json