CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-es2015-literals

Babel plugin that compiles ES2015 unicode string and number literals to ES5

86

0.97x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses @babel/plugin-transform-literals and @babel/core to normalize unicode escape sequences in JavaScript string literals. The focus is on proper integration of the Babel plugin into the transformation pipeline.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses @babel/core",
      "description": "Imports and uses @babel/core's transformSync or transform function to parse and transform JavaScript code",
      "max_score": 25
    },
    {
      "name": "Uses transform-literals plugin",
      "description": "Correctly configures and applies @babel/plugin-transform-literals as a plugin in the Babel transformation options",
      "max_score": 30
    },
    {
      "name": "Proper plugin configuration",
      "description": "Passes the plugin correctly in the plugins array of Babel options (e.g., plugins: ['@babel/plugin-transform-literals'])",
      "max_score": 20
    },
    {
      "name": "Returns transformed code",
      "description": "Extracts and returns the transformed code from Babel's output (e.g., result.code)",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Handles parse errors appropriately by catching and re-throwing or letting Babel errors propagate",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel-plugin-transform-es2015-literals

tile.json