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

{
  "context": "This criteria evaluates how effectively the engineer uses the flow-remove-types package to remove Flow type assertions (as expressions and as const) from JavaScript source code. The focus is on proper usage of the package's API and transformation capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses flow-remove-types",
      "description": "Imports and uses the flow-remove-types package (the main export function) to perform the transformation",
      "max_score": 25
    },
    {
      "name": "Handles as expressions",
      "description": "Successfully removes type assertions in the form 'value as Type' using flow-remove-types transformation",
      "max_score": 25
    },
    {
      "name": "Handles as const",
      "description": "Successfully removes const assertions in the form 'value as const' using flow-remove-types transformation",
      "max_score": 25
    },
    {
      "name": "Proper result extraction",
      "description": "Correctly extracts the transformed output using the .toString() method on the result object returned by flow-remove-types",
      "max_score": 15
    },
    {
      "name": "Options configuration",
      "description": "Uses appropriate options (such as 'pretty' or default mode) when calling flow-remove-types to control transformation behavior",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json