CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-eval

Babel plugin that transforms eval() calls containing string literals by parsing and compiling the string content at transform time

98

1.28x
Quality

Pending

Does it follow best practices?

Impact

98%

1.28x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses Babel's API to transform advanced class features (private fields, private methods, and super calls) into backwards-compatible JavaScript. The focus is on proper usage of Babel's transformation APIs and relevant plugins.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Babel Core Usage",
      "description": "Uses @babel/core's transformation API (transformSync, transform, or transformAsync) to parse and transform the input code",
      "max_score": 25
    },
    {
      "name": "Private Fields Plugin",
      "description": "Configures and uses @babel/plugin-proposal-class-properties or @babel/plugin-transform-class-properties to transform private field syntax (#field)",
      "max_score": 20
    },
    {
      "name": "Private Methods Plugin",
      "description": "Configures and uses @babel/plugin-proposal-private-methods or includes private method transformation as part of class properties plugin configuration",
      "max_score": 20
    },
    {
      "name": "Classes Plugin",
      "description": "Uses @babel/plugin-transform-classes to handle class transformation including super calls in constructors and methods",
      "max_score": 20
    },
    {
      "name": "Plugin Configuration",
      "description": "Properly configures plugin options in the plugins array passed to Babel's transform API, ensuring plugins are applied in the correct order",
      "max_score": 10
    },
    {
      "name": "Output Handling",
      "description": "Correctly extracts and returns the transformed code from Babel's transformation result object (e.g., result.code)",
      "max_score": 5
    }
  ]
}

tile.json