Utility functions for working with TypeScript's API, providing comprehensive tools for analyzing and manipulating TypeScript AST nodes, types, and compiler APIs.
79
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-ts-api-utilsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10