CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-acorn-jsx

tessl install tessl/npm-acorn-jsx@5.3.0

JSX 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%

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses acorn-jsx's token context management features to access and report on the three custom token contexts (tc_oTag, tc_cTag, tc_expr) that the parser uses to track JSX parsing state.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Parser Extension",
      "description": "Correctly extends the Acorn parser with acorn-jsx using acorn.Parser.extend(jsx()) to create a JSX-capable parser instance",
      "max_score": 20
    },
    {
      "name": "Access tokContexts",
      "description": "Accesses the custom token contexts through Parser.acornJsx.tokContexts property after extending the parser",
      "max_score": 30
    },
    {
      "name": "Extract Context Properties",
      "description": "Extracts and uses properties from the token context objects (tc_oTag, tc_cTag, tc_expr) to build the output",
      "max_score": 25
    },
    {
      "name": "Return All Three Contexts",
      "description": "Returns information about all three JSX-specific token contexts: tc_oTag (opening tag context), tc_cTag (closing tag context), and tc_expr (expression/content context)",
      "max_score": 20
    },
    {
      "name": "Correct Output Format",
      "description": "Returns an array of objects where each object has 'name' and 'description' properties as specified",
      "max_score": 5
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/acorn-jsx@5.3.x
tile.json