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

{
  "context": "This evaluation assesses how effectively the engineer uses the flow-remove-types package to remove Flow interface declarations and type aliases from JavaScript source code. The focus is on proper API usage, correct configuration, and appropriate handling of the type removal functionality.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "Correctly imports the flow-remove-types package (e.g., `const flowRemoveTypes = require('flow-remove-types')` or similar)",
      "max_score": 10
    },
    {
      "name": "Core Function Usage",
      "description": "Uses the main flowRemoveTypes() function to transform source code, passing source string as the first argument",
      "max_score": 25
    },
    {
      "name": "Result Extraction",
      "description": "Correctly extracts the transformed code from the result object using .toString() method (e.g., `result.toString()`)",
      "max_score": 20
    },
    {
      "name": "Interface Removal",
      "description": "Successfully removes interface declarations from the source code using the package (not manually parsing or string replacement)",
      "max_score": 15
    },
    {
      "name": "Type Alias Removal",
      "description": "Successfully removes type alias declarations from the source code using the package (not manually parsing or string replacement)",
      "max_score": 15
    },
    {
      "name": "Options Configuration",
      "description": "Uses appropriate options when calling flowRemoveTypes() (e.g., setting `all: true` to process files without @flow pragma, or using default behavior correctly)",
      "max_score": 10
    },
    {
      "name": "No Manual Parsing",
      "description": "Does not attempt to manually parse or remove type definitions using regex or string manipulation - relies entirely on flow-remove-types package functionality",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json