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

{
  "context": "This evaluation assesses how well the engineer uses @babel/plugin-transform-literals to transpile ES2015 octal literals to ES5-compatible code. The criteria focuses on proper plugin installation, configuration, and successful transformation of octal numeric literals.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin installation",
      "description": "The @babel/plugin-transform-literals package is installed as a dependency (devDependency or dependency) in package.json",
      "max_score": 15
    },
    {
      "name": "Babel configuration",
      "description": "A Babel configuration file (.babelrc, .babelrc.json, babel.config.js, or babel.config.json) exists and includes @babel/plugin-transform-literals in the plugins array",
      "max_score": 25
    },
    {
      "name": "Octal literal usage",
      "description": "The source code uses octal literals with 0o or 0O prefix (e.g., 0o444, 0o644, 0o600, etc.) for at least 3 of the required permission constants",
      "max_score": 20
    },
    {
      "name": "Build script configuration",
      "description": "A build script is defined in package.json that uses Babel to transpile the source code (e.g., using @babel/cli or similar tool)",
      "max_score": 15
    },
    {
      "name": "Successful transformation",
      "description": "When the build is executed, octal literals in the source code are correctly transformed to decimal format in the transpiled output (e.g., 0o644 becomes 420)",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

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

tile.json