CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-acorn-jsx

JSX parsing plugin for the Acorn JavaScript parser that enables fast parsing of React JSX syntax

76

1.68x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-acorn-jsx

tile.json