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

{
  "context": "This criteria evaluates how well the engineer uses the react-dev-utils package to format and display webpack compilation messages. The focus is on correct usage of the formatWebpackMessages function and proper handling of webpack stats objects.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import react-dev-utils",
      "description": "Correctly imports the formatWebpackMessages function from 'react-dev-utils/formatWebpackMessages' or requires the appropriate module from react-dev-utils",
      "max_score": 20
    },
    {
      "name": "Call formatWebpackMessages",
      "description": "Uses formatWebpackMessages function to process webpack stats errors and warnings arrays",
      "max_score": 30
    },
    {
      "name": "Handle formatted output",
      "description": "Properly extracts and uses the formatted messages returned by formatWebpackMessages (typically returns an object with 'errors' and 'warnings' arrays)",
      "max_score": 25
    },
    {
      "name": "Display formatted messages",
      "description": "Displays the formatted messages to console with appropriate headers (Failed to compile, Compiled with warnings, Compiled successfully)",
      "max_score": 15
    },
    {
      "name": "Return build status",
      "description": "Returns correct status object based on presence of errors and warnings as specified in the API",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json