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

{
  "context": "This criteria evaluates the engineer's understanding and usage of the @babel/plugin-transform-computed-properties package, specifically focusing on the setComputedProperties assumption feature. The evaluation assesses whether the engineer correctly constructs Babel configurations with the plugin, properly handles the assumptions object, and accurately checks for the setComputedProperties assumption setting.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin inclusion",
      "description": "The buildBabelConfig function includes '@babel/plugin-transform-computed-properties' in the returned configuration's plugins array",
      "max_score": 25
    },
    {
      "name": "Assumptions structure",
      "description": "The buildBabelConfig function correctly places the assumptions object (including setComputedProperties) at the top level of the Babel configuration object, not nested within plugin options",
      "max_score": 25
    },
    {
      "name": "Assumption propagation",
      "description": "The buildBabelConfig function properly passes through the setComputedProperties value from the input options.assumptions to the output config.assumptions",
      "max_score": 20
    },
    {
      "name": "Assumption detection",
      "description": "The isRelaxedMode function correctly checks for the setComputedProperties assumption by accessing config.assumptions.setComputedProperties",
      "max_score": 20
    },
    {
      "name": "Default handling",
      "description": "The implementation correctly handles cases where assumptions or setComputedProperties are undefined, treating them as false (strict mode)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json