docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This evaluation assesses how well the engineer uses the postcss-modules-extract-imports package to handle global composition transformations in CSS Modules. The focus is on proper usage of PostCSS plugin integration and understanding the global composition feature.",
"type": "weighted_checklist",
"checklist": [
{
"name": "PostCSS integration",
"description": "Uses postcss.process() or similar PostCSS API to process CSS content",
"max_score": 20
},
{
"name": "Plugin usage",
"description": "Correctly imports and uses the postcss-modules-extract-imports plugin (e.g., require('postcss-modules-extract-imports'))",
"max_score": 30
},
{
"name": "Plugin configuration",
"description": "Properly configures the PostCSS processor with the extract-imports plugin (e.g., postcss([extractImports()]))",
"max_score": 25
},
{
"name": "Global transformation",
"description": "Successfully transforms 'composes: ... from global' declarations into global() wrapped format",
"max_score": 20
},
{
"name": "Result extraction",
"description": "Correctly extracts and returns the transformed CSS from the PostCSS result object (e.g., result.css)",
"max_score": 5
}
]
}