A hyperscript helper for creating Slate documents with JSX-like syntax.
90
{
"context": "This criteria evaluates how well the engineer uses slate-hyperscript's inline selection marker tokens (cursor, anchor, focus) to create editor test fixtures with various selection states. The focus is on proper usage of JSX syntax with embedded selection markers rather than manual selection object construction.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports jsx function",
"description": "Correctly imports the jsx function from slate-hyperscript (either default import or named import)",
"max_score": 10
},
{
"name": "Uses cursor token",
"description": "Uses the <cursor /> token embedded directly in text content to create collapsed selections in at least three functions (start, middle, end positions)",
"max_score": 30
},
{
"name": "Uses anchor/focus tokens",
"description": "Uses both <anchor /> and <focus /> tokens together embedded in text content to create a range selection",
"max_score": 25
},
{
"name": "Uses editor tag",
"description": "Uses the <editor> JSX tag to wrap document structure and establish top-level editor object",
"max_score": 10
},
{
"name": "Uses element tag",
"description": "Uses the <element> JSX tag to create element nodes containing text and selection markers",
"max_score": 10
},
{
"name": "Inline marker placement",
"description": "Places selection markers (cursor, anchor, focus) inline within text strings rather than as separate children or using explicit selection objects with paths",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-slate-hyperscriptdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10