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-3/

{
  "context": "This criteria evaluates how well the engineer uses the flow-remove-types package to remove Flow type annotations and generate v3 format source maps. The evaluation focuses on correct usage of the pretty mode option and the generateMap() method.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import flow-remove-types",
      "description": "The solution correctly imports the flow-remove-types package using require() or import statement",
      "max_score": 10
    },
    {
      "name": "Use pretty option",
      "description": "The solution calls flowRemoveTypes() with the { pretty: true } option to completely remove type annotations rather than replacing them with whitespace",
      "max_score": 25
    },
    {
      "name": "Call generateMap method",
      "description": "The solution calls the .generateMap() method on the result object returned by flowRemoveTypes() to obtain the v3 format source map",
      "max_score": 30
    },
    {
      "name": "Extract transformed code",
      "description": "The solution calls .toString() method on the result object to extract the transformed JavaScript code as a string",
      "max_score": 20
    },
    {
      "name": "Return correct structure",
      "description": "The solution returns an object with 'code' and 'sourceMap' properties containing the transformed code string and source map object respectively",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json