CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-ts-api-utils

Utility functions for working with TypeScript's API, providing comprehensive tools for analyzing and manipulating TypeScript AST nodes, types, and compiler APIs.

79

1.97x
Quality

Pending

Does it follow best practices?

Impact

79%

1.97x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-8/

{
  "context": "This evaluation assesses how effectively the engineer uses the ts-api-utils package for syntax validation tasks. The criteria focus exclusively on the proper usage of isAssignmentKind, isNumericPropertyName, and isValidPropertyAccess functions from the package.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "isAssignmentKind usage",
      "description": "Uses ts-api-utils's isAssignmentKind function to check if a SyntaxKind represents an assignment operation in the isAssignment implementation",
      "max_score": 35
    },
    {
      "name": "Correct operator extraction",
      "description": "Properly extracts the operatorToken.kind from the BinaryExpression before passing it to isAssignmentKind",
      "max_score": 10
    },
    {
      "name": "isNumericPropertyName usage",
      "description": "Uses ts-api-utils's isNumericPropertyName function to determine if a property name is numeric in the isNumericProperty implementation",
      "max_score": 30
    },
    {
      "name": "isValidPropertyAccess usage",
      "description": "Uses ts-api-utils's isValidPropertyAccess function to validate property names in the recommendAccessSyntax implementation",
      "max_score": 20
    },
    {
      "name": "Correct return mapping",
      "description": "Maps isValidPropertyAccess return value correctly (true -> 'dot', false -> 'bracket') in the recommendAccessSyntax function",
      "max_score": 5
    }
  ]
}

tile.json