tessl install tessl/npm-acorn-jsx@5.3.0JSX parsing plugin for the Acorn JavaScript parser that enables fast parsing of React JSX syntax
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.69x
Baseline
Agent success rate without this tile
45%
{
"context": "This criteria evaluates how effectively the engineer uses the acorn-jsx package to parse JSX code and extract expression container attributes. It focuses on correct usage of acorn-jsx's parsing capabilities, proper handling of JSX-specific AST nodes, and accurate extraction of expression information from JSXExpressionContainer and JSXAttribute nodes.",
"type": "weighted_checklist",
"checklist": [
{
"name": "acorn-jsx integration",
"description": "Correctly integrates acorn-jsx with acorn using Parser.extend() to create a JSX-capable parser",
"max_score": 15
},
{
"name": "JSX parsing",
"description": "Uses the extended Parser.parse() method to parse JavaScript code containing JSX elements into an AST",
"max_score": 15
},
{
"name": "JSXElement identification",
"description": "Correctly identifies and traverses JSXElement nodes in the AST to find all JSX elements in the code",
"max_score": 15
},
{
"name": "JSXAttribute extraction",
"description": "Accesses the attributes array from JSXOpeningElement nodes to find all attributes on each element",
"max_score": 15
},
{
"name": "JSXExpressionContainer detection",
"description": "Identifies JSXAttribute nodes whose value property is a JSXExpressionContainer (type: 'JSXExpressionContainer') to find expression-based attributes",
"max_score": 20
},
{
"name": "Expression extraction",
"description": "Accesses the expression property within JSXExpressionContainer nodes to get the actual JavaScript expression AST node",
"max_score": 10
},
{
"name": "Expression type identification",
"description": "Retrieves the type property from expression nodes (e.g., 'Identifier', 'MemberExpression', 'ObjectExpression', 'ArrowFunctionExpression') to determine expression types",
"max_score": 10
}
]
}