CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--plugin-proposal-object-rest-spread

Babel plugin that transforms ECMAScript object rest and spread syntax into ES5-compatible code.

85

1.06x

Quality

Pending

Does it follow best practices?

Impact

85%

1.06x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation assesses how effectively the engineer uses @babel/core's transformation pipeline to build a JavaScript code transformation tool. The focus is on proper use of core transformation APIs, configuration, and output generation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Core transform usage",
      "description": "Uses @babel/core's transformation API (transformSync, transform, or transformFileSync) to process JavaScript code",
      "max_score": 25
    },
    {
      "name": "Target configuration",
      "description": "Configures transformation targets using the 'targets' or 'presets' option (e.g., @babel/preset-env with targets: { node: '12' })",
      "max_score": 20
    },
    {
      "name": "Source map generation",
      "description": "Enables inline source map generation using the 'sourceMaps' option set to 'inline' or true with appropriate inlineSourceMap configuration",
      "max_score": 20
    },
    {
      "name": "File reading",
      "description": "Reads the input file from command-line arguments and passes the content or filepath to the transformation API",
      "max_score": 10
    },
    {
      "name": "Output handling",
      "description": "Outputs the transformed code (from result.code) to stdout using console.log or process.stdout.write",
      "max_score": 10
    },
    {
      "name": "Error handling",
      "description": "Catches and handles transformation errors, printing error messages to stderr and exiting with non-zero status",
      "max_score": 10
    },
    {
      "name": "CLI interface",
      "description": "Implements the CLI correctly by reading the filename from process.argv and executing the transformation when run as a script",
      "max_score": 5
    }
  ]
}

tile.json