CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-swc--core-darwin-arm64

Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture

89

1.15x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "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-arm64

tile.json