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

{
  "context": "This evaluation assesses the engineer's proficiency in using ES2015 computed properties to create objects with dynamically generated property names. The focus is entirely on proper usage of computed property syntax (e.g., { [expression]: value }) to solve the configuration building problem.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Computed property syntax",
      "description": "Uses ES2015 computed property syntax with square brackets (e.g., { [key]: value }) to create objects with dynamically computed property names in at least one function",
      "max_score": 30
    },
    {
      "name": "Multiple computed properties",
      "description": "Creates an object with multiple computed properties in a single object literal (e.g., { [key1]: value1, [key2]: value2, ... }) in the createConfig function",
      "max_score": 25
    },
    {
      "name": "Dynamic key expressions",
      "description": "Uses dynamic expressions (string concatenation, template literals, or other operations) within the computed property brackets to generate property names (e.g., [prefix + suffix] or [`merged_${key}`])",
      "max_score": 20
    },
    {
      "name": "Computed properties in mergeConfigs",
      "description": "Uses computed property syntax in the mergeConfigs function to create merged keys with the 'merged_' prefix pattern",
      "max_score": 15
    },
    {
      "name": "Proper object building",
      "description": "Constructs complete objects with all required properties using computed property syntax without unnecessary intermediate steps or manual property assignments",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json