CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-flow-remove-types

Fast, zero-configuration Flow type annotation removal tool for JavaScript with CLI and programmatic APIs

84

1.09x
Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how well the engineer uses flow-remove-types package capabilities, specifically the flow-node command's eval (-e) and print (-p) modes, to implement a Flow expression evaluator utility.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses flow-node command",
      "description": "Solution invokes the flow-node command (not node or other alternatives) to execute Flow-typed JavaScript code, demonstrating awareness of flow-remove-types' dedicated execution tool",
      "max_score": 25
    },
    {
      "name": "Implements eval mode",
      "description": "Solution correctly uses flow-node's -e or --eval flag to evaluate code without printing the result, as specified for eval mode in the requirements",
      "max_score": 20
    },
    {
      "name": "Implements print mode",
      "description": "Solution correctly uses flow-node's -p or --print flag to evaluate code and print the result, as specified for print mode in the requirements",
      "max_score": 20
    },
    {
      "name": "Passes code correctly",
      "description": "Solution correctly passes the JavaScript code string as an argument to flow-node using the appropriate flag (not as a file or stdin), handling string escaping and quoting properly",
      "max_score": 15
    },
    {
      "name": "Captures output correctly",
      "description": "Solution properly captures stdout and stderr from the flow-node process, enabling the utility to return or display the evaluation results as specified",
      "max_score": 10
    },
    {
      "name": "Mode selection logic",
      "description": "Solution implements correct conditional logic to select between -e and -p flags based on the mode parameter (eval vs print)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-flow-remove-types

tile.json