Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This criteria evaluates how well the engineer uses @swc/core's parsing and code generation capabilities to convert JavaScript code to AST and back to source code. The focus is on proper usage of parse/parseSync and print/printSync methods.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses parse method",
"description": "Uses @swc/core's parse() or parseSync() method to convert JavaScript source code into an Abstract Syntax Tree (AST)",
"max_score": 25
},
{
"name": "Uses print method",
"description": "Uses @swc/core's print() or printSync() method to convert the AST back into JavaScript source code",
"max_score": 25
},
{
"name": "Async implementation",
"description": "Implements parseAndPrint() using async/await with parse() and print() methods, properly handling promises",
"max_score": 20
},
{
"name": "Sync implementation",
"description": "Implements parseAndPrintSync() using parseSync() and printSync() methods for synchronous operation",
"max_score": 20
},
{
"name": "JSX syntax support",
"description": "Configures the parser with syntax: 'ecmascript' and jsx: true (or syntax: 'typescript' with tsx: true) to handle JSX code correctly",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-swc--core-darwin-arm64docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10