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 well the engineer uses acorn-jsx's token type system to analyze JSX source code. The focus is on properly accessing and utilizing the custom JSX token types (jsxName, jsxText, jsxTagStart, jsxTagEnd) provided by the parser plugin.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Parser extension",
"description": "Uses acorn.Parser.extend() to extend the Acorn parser with the jsx plugin to enable JSX parsing capabilities",
"max_score": 20
},
{
"name": "Token type access",
"description": "Accesses the custom JSX token types through Parser.acornJsx.tokTypes to obtain references to jsxName, jsxText, jsxTagStart, and jsxTagEnd token types",
"max_score": 30
},
{
"name": "Tokenization process",
"description": "Uses the parser's tokenization mechanism (e.g., getToken() or similar method) to iterate through all tokens in the source code",
"max_score": 25
},
{
"name": "Token type comparison",
"description": "Correctly identifies JSX-specific tokens by comparing each token's type property against the JSX token type references obtained from Parser.acornJsx.tokTypes",
"max_score": 25
}
]
}