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 to transform TypeScript decorators, focusing on proper API usage, configuration of transformation options, and handling of TypeScript-specific features.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses transform API",
"description": "Uses transformSync() or transform() method from @swc/core to process the input TypeScript file",
"max_score": 25
},
{
"name": "Configures TypeScript parser",
"description": "Configures jsc.parser with syntax: 'typescript' and decorators: true to enable TypeScript decorator parsing",
"max_score": 20
},
{
"name": "Sets decorator transformation",
"description": "Configures jsc.transform.decoratorVersion or jsc.transform.legacyDecorator to specify decorator transformation behavior",
"max_score": 20
},
{
"name": "Configures target ECMAScript",
"description": "Sets jsc.target to an appropriate ECMAScript version (e.g., 'es2022' or newer) for the output",
"max_score": 15
},
{
"name": "Reads input file",
"description": "Properly reads the TypeScript file from the provided file path (using fs.readFileSync or equivalent) to pass as input to the transform function",
"max_score": 10
},
{
"name": "Outputs transformed code",
"description": "Correctly outputs the transformed code result (accessing the .code property from the transform result) to stdout",
"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