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

{
  "context": "This evaluation assesses the engineer's ability to create a custom Babel plugin using the Path API, visitor pattern, and AST manipulation capabilities. The focus is on proper usage of Babel's plugin development features to traverse and modify the AST.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin structure",
      "description": "Plugin exports a function that accepts the babel object and returns an object with a 'visitor' property",
      "max_score": 15
    },
    {
      "name": "Visitor pattern usage",
      "description": "Uses the visitor pattern with appropriate node type visitors (e.g., ExpressionStatement or CallExpression) to traverse the AST",
      "max_score": 25
    },
    {
      "name": "Node type checking",
      "description": "Uses babel.types methods (e.g., t.isMemberExpression, t.isIdentifier, t.isCallExpression) or path.node type checking to identify console method calls",
      "max_score": 20
    },
    {
      "name": "Path API usage",
      "description": "Uses Path API methods (e.g., path.remove()) to remove console statements from the AST",
      "max_score": 25
    },
    {
      "name": "Correct identification logic",
      "description": "Correctly identifies console method calls by checking that the object is 'console' and the parent/node is a call expression, handling any console method name",
      "max_score": 15
    }
  ]
}

tile.json