CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-confusing-browser-globals

A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses babel-preset-react-app to build a JavaScript/JSX transpilation tool. The focus is on proper integration of the Babel preset, correct configuration of transformation plugins, and appropriate usage of Babel's core APIs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "babel-preset-react-app usage",
      "description": "Uses babel-preset-react-app as the primary preset in Babel configuration. The preset should be properly imported and included in the Babel configuration object.",
      "max_score": 25
    },
    {
      "name": "@babel/core integration",
      "description": "Correctly uses @babel/core functions such as transform, transformSync, or transformAsync to perform code transformation. The function should be called with appropriate parameters including the source code and Babel configuration.",
      "max_score": 25
    },
    {
      "name": "Preset configuration",
      "description": "Properly configures babel-preset-react-app with appropriate options in the presets array. This includes setting the preset in the Babel options object passed to the transform function.",
      "max_score": 20
    },
    {
      "name": "JSX transformation",
      "description": "Successfully transforms JSX syntax using babel-preset-react-app's built-in JSX transformation capabilities. The preset includes @babel/preset-react which handles JSX to JavaScript conversion.",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Properly catches and handles Babel transformation errors (SyntaxError, parsing errors) and provides meaningful error messages to users. Uses try-catch blocks around Babel transform calls.",
      "max_score": 10
    },
    {
      "name": "Result extraction",
      "description": "Correctly extracts the transformed code from Babel's return value using the .code property of the transformation result object.",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-confusing-browser-globals

tile.json