evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses jsdoc-to-markdown's raw template data injection capability to generate markdown documentation without parsing source files. The focus is on proper usage of the render() method with pre-processed data and configuration options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import jsdoc-to-markdown",
"description": "Correctly imports or requires the jsdoc-to-markdown package (e.g., const jsdoc2md = require('jsdoc-to-markdown'))",
"max_score": 15
},
{
"name": "Use render method",
"description": "Uses the render() method from jsdoc-to-markdown to generate markdown output",
"max_score": 25
},
{
"name": "Pass data parameter",
"description": "Passes template data using the 'data' option to render() method (e.g., render({ data: templateData }))",
"max_score": 30
},
{
"name": "Handle options parameter",
"description": "Correctly passes the options parameter (like headingDepth) to the render() method configuration",
"max_score": 15
},
{
"name": "Return Promise",
"description": "Properly handles the async nature of render() by returning the Promise or using async/await",
"max_score": 15
}
]
}