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

{
  "context": "This criteria evaluates how well the engineer uses @babel/core and @babel/plugin-transform-literals to build a transpilation tool. The focus is on proper package usage, including zero-configuration plugin setup and correct integration with Babel's transformation pipeline.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Babel Core Import",
      "description": "Correctly imports and uses @babel/core's transform or transformFile methods (e.g., babel.transform(), babel.transformFile(), or babel.transformFileSync())",
      "max_score": 15
    },
    {
      "name": "Plugin Configuration",
      "description": "Correctly includes @babel/plugin-transform-literals in the Babel plugins array configuration without additional plugin-specific options (demonstrating zero-configuration usage)",
      "max_score": 25
    },
    {
      "name": "Transform Method Usage",
      "description": "Properly uses Babel's transformation API by passing source code and configuration object with plugins array to the transform method",
      "max_score": 20
    },
    {
      "name": "Output Code Extraction",
      "description": "Correctly extracts the transformed code from Babel's transformation result object (typically result.code property)",
      "max_score": 15
    },
    {
      "name": "Binary Literal Transformation",
      "description": "The implementation successfully transforms binary literals (0b prefix) to their decimal equivalents as demonstrated in test cases",
      "max_score": 10
    },
    {
      "name": "Octal Literal Transformation",
      "description": "The implementation successfully transforms octal literals (0o prefix) to their decimal equivalents as demonstrated in test cases",
      "max_score": 10
    },
    {
      "name": "Unicode Escape Handling",
      "description": "The implementation successfully normalizes unicode escape sequences in strings as demonstrated in test cases",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json