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

{
  "context": "This criteria evaluates how effectively the engineer uses the @babel/template package to build Abstract Syntax Tree (AST) nodes from string templates. The focus is on proper usage of template-based AST construction methods rather than manual AST node building.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses template builders",
      "description": "Uses @babel/template's template builder functions (e.g., template.statement, template.expression, template.program, or template.ast) to construct AST nodes from string templates rather than manually creating nodes using @babel/types builders.",
      "max_score": 30
    },
    {
      "name": "Correct template syntax",
      "description": "Uses proper template string syntax with correct placeholder notation (e.g., %%identifier%% for syntactic placeholders or Identifier pattern matching) to dynamically inject values into templates.",
      "max_score": 20
    },
    {
      "name": "Function generation",
      "description": "Correctly generates function declaration AST nodes using @babel/template with dynamic function names, parameters, and body content as specified in the generateFunction API.",
      "max_score": 15
    },
    {
      "name": "Variable generation",
      "description": "Correctly generates variable declaration AST nodes using @babel/template with dynamic declaration kinds (const/let/var), variable names, and initializer expressions as specified in the generateVariable API.",
      "max_score": 15
    },
    {
      "name": "Class generation",
      "description": "Correctly generates class declaration AST nodes using @babel/template with dynamic class names and methods as specified in the generateClass API.",
      "max_score": 10
    },
    {
      "name": "Import generation",
      "description": "Correctly generates import statement AST nodes using @babel/template with dynamic specifiers and source paths as specified in the generateImport API.",
      "max_score": 10
    }
  ]
}

tile.json