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

{
  "context": "This criteria evaluates how well the engineer uses @babel/core and @babel/plugin-transform-literals to transform JavaScript code containing binary literals to ES5-compatible decimal format. The focus is on correct Babel API usage and proper plugin configuration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Babel transform usage",
      "description": "Uses babel.transform() or babel.transformSync() from @babel/core to transform the input code",
      "max_score": 25
    },
    {
      "name": "Plugin registration",
      "description": "Correctly includes @babel/plugin-transform-literals in the Babel plugins configuration array",
      "max_score": 25
    },
    {
      "name": "Configuration structure",
      "description": "Properly structures the Babel configuration object with a 'plugins' array passed to the transform function",
      "max_score": 20
    },
    {
      "name": "Code output extraction",
      "description": "Correctly extracts the transformed code from the Babel transform result (e.g., result.code)",
      "max_score": 15
    },
    {
      "name": "Binary literal handling",
      "description": "The implementation successfully transforms binary literals (0b/0B prefix) to decimal numbers as verified by the test cases",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json