docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "Evaluates how the solution leverages jsx-ast-utils to resolve JSX props from direct attributes and object-literal spreads while honoring case-sensitivity requirements and returning literal values when present. Focuses on correct use of library APIs instead of manual AST traversal.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Prop lookup",
"description": "Imports and uses jsx-ast-utils getProp to locate the requested prop on the attributes array instead of manually scanning nodes.",
"max_score": 30
},
{
"name": "Spread support",
"description": "Relies on getProp's built-in handling of object-literal spread attributes to synthesize matching props, while letting it ignore non-object spreads and skip the React-reserved key prop.",
"max_score": 25
},
{
"name": "Case handling",
"description": "Maps the resolver's caseSensitive option to getProp's ignoreCase setting so that casing behavior matches the spec in both strict and default modes.",
"max_score": 20
},
{
"name": "Value extraction",
"description": "Uses jsx-ast-utils getLiteralPropValue or getPropValue on the resolved attribute to populate the returned value instead of reimplementing JSX value evaluation.",
"max_score": 25
}
]
}