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

{
  "context": "This criteria evaluates how effectively an engineer uses the connect package to build a development server with SPA routing fallback. The focus is on proper usage of connect's middleware system for serving static files and implementing fallback logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "connect() usage",
      "description": "Uses connect() to create the app/server instance",
      "max_score": 15
    },
    {
      "name": "serveStatic middleware",
      "description": "Uses connect's serveStatic (or serve-static) middleware to serve static files from the public directory",
      "max_score": 30
    },
    {
      "name": "Fallback middleware",
      "description": "Implements custom middleware that serves index.html for non-static routes, placed after the serveStatic middleware",
      "max_score": 30
    },
    {
      "name": "Middleware ordering",
      "description": "Correctly orders middleware so static files are checked first, then fallback is applied",
      "max_score": 15
    },
    {
      "name": "Server listening",
      "description": "Uses app.listen() to start the server on the configured port",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json