A base TSConfig for working with Node 14.
84
{
"context": "This criteria evaluates how well the engineer uses @tsconfig/bases package to configure environment-specific type definitions. The focus is on proper usage of the package's pre-configured bases to set up DOM types for browsers, Node-specific ES libraries, and testing framework types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses @tsconfig/bases",
"description": "Imports and extends from @tsconfig/bases package configurations (e.g., using 'extends' field in generated tsconfig)",
"max_score": 25
},
{
"name": "Browser DOM types",
"description": "For browser environment, correctly configures DOM and DOM.iterable in lib array or extends appropriate @tsconfig base that includes these",
"max_score": 20
},
{
"name": "Node ES libraries",
"description": "For Node environment, includes appropriate ES library versions (e.g., es2020, es2021, es2022) or extends appropriate @tsconfig/node-* base",
"max_score": 20
},
{
"name": "Testing types configuration",
"description": "For testing environment, explicitly configures types array for testing frameworks (e.g., types: ['cypress', 'jest']) or uses minimal lib configuration",
"max_score": 20
},
{
"name": "Environment differentiation",
"description": "Generates different type configurations for each environment rather than using a one-size-fits-all approach",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tsconfig--node14docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10